9 applyESPrefer =
True ):
12 from CondTools.L1Trigger.L1CondEnum_cfi
import L1CondEnum
14 if len( tagBaseVec ) == 0:
15 from CondTools.L1Trigger.L1O2OTags_cfi
import initL1O2OTags
17 tagBaseVec = initL1O2OTags.tagBaseVec
19 process.l1conddb = cms.ESSource(
"PoolDBESSource",
21 connect = cms.string(inputDBConnect),
22 toGet = cms.VPSet(cms.PSet(
23 record = cms.string(
'L1TriggerKeyListRcd'),
24 tag = cms.string(
'L1TriggerKeyList_' + tagBaseVec[ L1CondEnum.L1TriggerKeyList ])
27 record = cms.string(
'L1TriggerKeyRcd'),
28 tag = cms.string(
'L1TriggerKey_' + tagBaseVec[ L1CondEnum.L1TriggerKey ])
31 process.l1conddb.DBParameters.authenticationPath = inputDBAuth
36 if includeAllTags ==
True:
37 if use30XTagList ==
True:
38 from CondTools.L1Trigger.L1SubsystemParams30X_cfi
import initL1Subsystems
40 from CondTools.L1Trigger.L1SubsystemParams_cfi
import initL1Subsystems
42 process.l1conddb.toGet.extend(initL1Subsystems.params.recordInfo)
43 elif includeRSTags ==
True:
44 from CondTools.L1Trigger.L1RSSubsystemParams_cfi
import initL1RSSubsystems
46 process.l1conddb.toGet.extend(initL1RSSubsystems.params.recordInfo)
48 if applyESPrefer ==
True:
49 process.es_prefer_l1conddb = cms.ESPrefer(
"PoolDBESSource",
"l1conddb")