1 import FWCore.ParameterSet.Config
as cms
3 process = cms.Process(
"CREATE" )
7 listName = cms.string(
'TauTriggerForMuDataset' ),
8 hltPaths = cms.vstring(
'HLT_IsoMu24_eta2p1_v*'),
9 dataTypeToInclude = cms.vstring(
'RealData',
'RealMuonsData'),
17 listName = cms.string(
'TauTriggerForJetDataset' ),
18 hltPaths = cms.vstring(
'HLT_Jet30_L1FastJet_v*'),
19 dataTypeToInclude = cms.vstring(
'RealData'),
22 listName = cms.string(
'TauTriggerForMultiJetDataset' ),
23 hltPaths = cms.vstring(
'HLT_Jet30_L1FastJet_v*'),
24 dataTypeToInclude = cms.vstring(
'RealData'),
27 listName = cms.string(
'TauTriggerForDoubleElectronDataset' ),
28 hltPaths = cms.vstring(
'HLT_Ele20_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC4_Mass50_v*'),
29 dataTypeToInclude = cms.vstring(
'RealElectronsData'),
32 listName = cms.string(
'TauTriggerForTauPlusXDataset' ),
33 hltPaths = cms.vstring(
'HLT_Ele20_CaloIdVT_CaloIsoRhoT_TrkIdT_TrkIsoT_LooseIsoPFTau20_v*'),
34 dataTypeToInclude = cms.vstring(
'RealElectronsData'),
41 for trigger
in Triggers:
42 if 'RealData' in trigger.dataTypeToInclude.value():
43 usedQCDTriggers.extend(trigger.hltPaths.value())
44 if 'RealMuonsData' in trigger.dataTypeToInclude.value():
45 usedMuTriggers.extend(trigger.hltPaths.value())
46 if 'RealElectronsData' in trigger.dataTypeToInclude.value():
47 usedEleTriggers.extend(trigger.hltPaths.value())
51 listName = cms.string(
'TauTriggerForALLQCDDataset' ),
52 hltPaths = cms.vstring(
list(set(usedQCDTriggers))),
58 listName = cms.string(
'TauTriggerForALLMuDataset' ),
59 hltPaths = cms.vstring(
list(set(usedMuTriggers))),
65 listName = cms.string(
'TauTriggerForALLEleDataset' ),
66 hltPaths = cms.vstring(
list(set(usedEleTriggers))),
70 process.load(
"FWCore.MessageLogger.MessageLogger_cfi" )
71 process.MessageLogger.cerr = cms.untracked.PSet(
72 placeholder = cms.untracked.bool(
True )
74 process.MessageLogger.cout = cms.untracked.PSet(
75 INFO = cms.untracked.PSet(
76 reportEvery = cms.untracked.int32( 1 )
80 process.source = cms.Source(
"EmptySource")
81 process.maxEvents = cms.untracked.PSet(
82 input = cms.untracked.int32( 1 )
85 process.AlCaRecoTriggerBitsRcdCreate = cms.EDAnalyzer(
86 "AlCaRecoTriggerBitsRcdUpdate",
87 firstRunIOV = cms.uint32( 1 ),
88 lastRunIOV = cms.int32( -1 ),
89 startEmpty = cms.bool(
True ),
90 listNamesRemove = cms.vstring(),
92 triggerListsAdd = Triggers,
96 process.PoolDBOutputService = cms.Service(
97 "PoolDBOutputService",
98 CondCore.DBCommon.CondDBSetup_cfi.CondDBSetup,
99 timetype = cms.untracked.string(
'runnumber' ),
100 connect = cms.string(
'sqlite_file:GenericTriggerEventFlag_AlCaRecoTriggerBits.db' ),
103 record = cms.string(
'AlCaRecoTriggerBitsRcd' ),
104 tag = cms.string(
'PFTauDQMTrigger_v0' ),
105 label = cms.untracked.string(
"PFTauDQMTrigger")
110 process.p = cms.Path(
111 process.AlCaRecoTriggerBitsRcdCreate