2 inputDBConnect =
'frontier://FrontierProd/CMS_COND_31X_L1T',
5 includeAllTags =
False,
8 applyESPrefer =
True ):
11 from CondTools.L1Trigger.L1CondEnum_cfi
import L1CondEnum
13 if len( tagBaseVec ) == 0:
14 from CondTools.L1Trigger.L1O2OTags_cfi
import initL1O2OTags
16 tagBaseVec = initL1O2OTags.tagBaseVec
18 process.l1conddb = cms.ESSource(
"PoolDBESSource",
20 connect = cms.string(inputDBConnect),
21 toGet = cms.VPSet(cms.PSet(
22 record = cms.string(
'L1TriggerKeyListRcd'),
23 tag = cms.string(
'L1TriggerKeyList_' + tagBaseVec[ L1CondEnum.L1TriggerKeyList ])
26 record = cms.string(
'L1TriggerKeyRcd'),
27 tag = cms.string(
'L1TriggerKey_' + tagBaseVec[ L1CondEnum.L1TriggerKey ])
30 process.l1conddb.DBParameters.authenticationPath = inputDBAuth
35 if includeAllTags ==
True:
36 if use30XTagList ==
True:
37 from CondTools.L1Trigger.L1SubsystemParams30X_cfi
import initL1Subsystems
39 from CondTools.L1Trigger.L1SubsystemParams_cfi
import initL1Subsystems
41 process.l1conddb.toGet.extend(initL1Subsystems.params.recordInfo)
42 elif includeRSTags ==
True:
43 from CondTools.L1Trigger.L1RSSubsystemParams_cfi
import initL1RSSubsystems
45 process.l1conddb.toGet.extend(initL1RSSubsystems.params.recordInfo)
47 if applyESPrefer ==
True:
48 process.es_prefer_l1conddb = cms.ESPrefer(
"PoolDBESSource",
"l1conddb")