Exemplo n.º 1
0
if (not options.B904Setup) and int(options.runNumber) == 0:
    sys.exit("Please provide a valid CMS Run Number")

process = cms.Process("ANALYSIS", Run3)
process.load("FWCore.MessageService.MessageLogger_cfi")

process.source = cms.Source("PoolSource",
                            fileNames=cms.untracked.vstring(
                                options.inputFiles))

## if dataVsEmulation and analyzeEffiency or analyzeResolution are true,
## pick dataVsEmulation
if options.dataVsEmulation and (options.analyzeEffiency
                                or options.analyzeResolution):
    options.analyzeEffiency = False
    options.analyzeResolution = False

if options.dataVsEmulation:
    options.maxEvents = 1
    process.source = cms.Source("EmptySource")

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

## customize the data vs emulator module
from DQM.L1TMonitor.L1TdeCSCTPG_cfi import l1tdeCSCTPGCommon
process.cscTriggerPrimitivesAnalyzer = cms.EDAnalyzer(
    "CSCTriggerPrimitivesAnalyzer",
    l1tdeCSCTPGCommon,
    ## file of the form "DQM_V0001_L1TEMU_R000334393"
    rootFileName=cms.string(options.dataVsEmulationFile),