Beispiel #1
0
def getOptionsDataVersion(dataVersion, options=None, useDefaultSignalTrigger=True):
    options = getOptions(options)
    if options.dataVersion != "":
        dataVersion = options.dataVersion
    print "Data version is", dataVersion

    dataVersion = DataVersion(dataVersion)
    if useDefaultSignalTrigger and len(options.trigger) == 0 and dataVersion.isMC() and options.tauEmbeddingInput == 0:
        options.trigger = [dataVersion.getDefaultSignalTrigger()]

    return (options, dataVersion)
Beispiel #2
0
def getOptionsDataVersion(dataVersion, options=None, useDefaultSignalTrigger=True):
    options = getOptions(options)

    if options.dataVersion != "":
        dataVersion = options.dataVersion
    print "Data version is", dataVersion

    dataVersion = DataVersion(dataVersion)

    if useDefaultSignalTrigger and len(options.trigger) == 0 and dataVersion.isMC():
        options.trigger = [dataVersion.getDefaultSignalTrigger()]

    return (options, dataVersion)
Beispiel #3
0
from HiggsAnalysis.HeavyChHiggsToTauNu.HChDataVersion import DataVersion
import FWCore.ParameterSet.VarParsing as VarParsing

dataVersion = "36X"
#dataVersion = "36Xspring10"
#dataVersion = "37X"
#dataVersion = "38X"
#dataVersion = "data" # this is for collision data 

options = getOptions()
if options.dataVersion != "":
    dataVersion = options.dataVersion
options.doPat=1

print "Assuming data is ", dataVersion
dataVersion = DataVersion(dataVersion) # convert string to object

process = cms.Process("MUONNTUPLE")

#process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10000) )
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) )

process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.GlobalTag.globaltag = cms.string(dataVersion.getGlobalTag())

process.source = cms.Source('PoolSource',
    fileNames = cms.untracked.vstring(
        #dataVersion.getPatDefaultFileCastor()
        #dataVersion.getPatDefaultFileMadhatter()
        "/store/group/local/HiggsChToTauNuFullyHadronic/tauembedding/CMSSW_3_8_X/DYJetsToLL_PU/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola/Fall10_E7TeV_ProbDist_2010Data_BX156_START38_V12_v1_GEN-SIM-RECO_tauembedding_skim_v5/f0f5761dbef0a56e664c9bfa3bb2c570/skim_10_1_SCv.root"
    )
from HiggsAnalysis.HeavyChHiggsToTauNu.HChOptions import getOptions
from HiggsAnalysis.HeavyChHiggsToTauNu.HChDataVersion import DataVersion

options = VarParsing.VarParsing()
options.register('inputFiles', '', options.multiplicity.list,
                 options.varType.string, "Files to process")
options.register("hltProcess", "", options.multiplicity.singleton,
                 options.varType.string, "HLT Process name")
options.register("printPaths", 0, options.multiplicity.singleton,
                 options.varType.int, "Print HLT paths")
options = getOptions(options)

hltProcess = "HLT"
if options.dataVersion != "":
    hltProcess = DataVersion(options.dataVersion).getTriggerProcess()
if options.hltProcess != "":
    hltProcess = options.hltProcess

print "Using HLT process name", hltProcess

process = cms.Process("HLTTABLEANALYZER")
maxEv = -1
if options.printPaths != 0:
    maxEv = 10
process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(maxEv))
process.options = cms.untracked.PSet(
    Rethrow=cms.untracked.vstring("ProductNotFound"))

process.source = cms.Source('PoolSource',
                            fileNames=cms.untracked.vstring(
Beispiel #5
0
import FWCore.ParameterSet.Config as cms
from HiggsAnalysis.HeavyChHiggsToTauNu.HChOptions import getOptions
from HiggsAnalysis.HeavyChHiggsToTauNu.HChDataVersion import DataVersion
import FWCore.ParameterSet.VarParsing as VarParsing

dataVersion = "42Xmc"
#dataVersion = "42Xdata"

options = getOptions()
if options.dataVersion != "":
    dataVersion = options.dataVersion
options.doPat=1

print "Assuming data is ", dataVersion
dataVersion = DataVersion(dataVersion) # convert string to object

process = cms.Process("MUONSKIM")

process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(2000) )

process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.GlobalTag.globaltag = cms.string(dataVersion.getGlobalTag())

process.source = cms.Source('PoolSource',
    fileNames = cms.untracked.vstring(
        #dataVersion.getPatDefaultFileCastor()
        dataVersion.getPatDefaultFileMadhatter()
    )
)

################################################################################
Beispiel #6
0
from HiggsAnalysis.HeavyChHiggsToTauNu.HChOptions import getOptions
from HiggsAnalysis.HeavyChHiggsToTauNu.HChDataVersion import DataVersion
import FWCore.ParameterSet.VarParsing as VarParsing

#dataVersion = "36X"
#dataVersion = "36Xspring10"
#dataVersion = "37X"
#dataVersion = "38X"
dataVersion = "39Xredigi"

options = getOptions()
if options.dataVersion != "":
    dataVersion = options.dataVersion

print "Assuming data is ", dataVersion
dataVersion = DataVersion(dataVersion)  # convert string to object

process = cms.Process("PatValidation")
process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(10))

process.source = cms.Source(
    'PoolSource', fileNames=cms.untracked.vstring("file:pattuple.root"))

process.load("HiggsAnalysis.HeavyChHiggsToTauNu.HChCommon_cfi")
del process.TFileService

process.analyzer = cms.EDAnalyzer(
    "HPlusPatTupleValidationAnalyzer",
    electrons=cms.untracked.VPSet(
        cms.PSet(src=cms.untracked.InputTag("selectedPatElectrons"),
                 electronIDs=cms.untracked.vstring(
import FWCore.ParameterSet.Config as cms
from HiggsAnalysis.HeavyChHiggsToTauNu.HChOptions import getOptions
from HiggsAnalysis.HeavyChHiggsToTauNu.HChDataVersion import DataVersion
import FWCore.ParameterSet.VarParsing as VarParsing

dataVersion = "42Xmc"
#dataVersion = "42Xdata"

options = getOptions()
if options.dataVersion != "":
    dataVersion = options.dataVersion
options.doPat = 1

print "Assuming data is ", dataVersion
dataVersion = DataVersion(dataVersion)  # convert string to object

process = cms.Process("MUONSKIM")

process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(2000))

process.load(
    "Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.GlobalTag.globaltag = cms.string(dataVersion.getGlobalTag())

process.source = cms.Source(
    'PoolSource',
    fileNames=cms.untracked.vstring(
        #dataVersion.getPatDefaultFileCastor()
        dataVersion.getPatDefaultFileMadhatter()))

################################################################################
Beispiel #8
0
from HiggsAnalysis.HeavyChHiggsToTauNu.HChDataVersion import DataVersion
import FWCore.ParameterSet.VarParsing as VarParsing

dataVersion = "36X"
#dataVersion = "36Xspring10"
#dataVersion = "37X"
#dataVersion = "38X"
#dataVersion = "data" # this is for collision data

options = getOptions()
if options.dataVersion != "":
    dataVersion = options.dataVersion
options.doPat = 1

print "Assuming data is ", dataVersion
dataVersion = DataVersion(dataVersion)  # convert string to object

process = cms.Process("MUONNTUPLE")

#process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10000) )
process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(10))

process.load(
    "Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.GlobalTag.globaltag = cms.string(dataVersion.getGlobalTag())

process.source = cms.Source(
    'PoolSource',
    fileNames=cms.untracked.vstring(
        #dataVersion.getPatDefaultFileCastor()
        #dataVersion.getPatDefaultFileMadhatter()
Beispiel #9
0
import FWCore.ParameterSet.VarParsing as VarParsing

#dataVersion = "44XmcS6"
#dataVersion = "42Xdata"
dataVersion = "53XmcS10"
#dataVersion = "53Xdata22Jan2013"

options = getOptions()
if options.dataVersion != "":
    dataVersion = options.dataVersion
# ALWAYS run PAT
options.doPat=1
#options.triggerMC = 1

print "Assuming data is ", dataVersion
dataVersion = DataVersion(dataVersion) # convert string to object

process = cms.Process("MUONSKIM")

process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000) )

process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.GlobalTag.globaltag = cms.string(dataVersion.getGlobalTag())

process.source = cms.Source('PoolSource',
    fileNames = cms.untracked.vstring(
        #dataVersion.getPatDefaultFileCastor()
        #dataVersion.getPatDefaultFileMadhatter()
        "file:/mnt/flustre/mkortela/data/TTJets_MassiveBinDECAY_TuneZ2star_8TeV-madgraph-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/FCE9FDAC-59E1-E111-82BB-0030487E5247.root"
    )
)