18 applyESPrefer =
True ):
19 import FWCore.ParameterSet.Config
as cms
21 from CondTools.L1Trigger.L1CondEnum_cfi
import L1CondEnum
23 if len( tagBaseVec ) == 0:
24 if len( tagBase ) != 0:
25 from CondTools.L1Trigger.L1UniformTags_cfi
import initL1UniformTags
27 tagBaseVec = initL1UniformTags.tagBaseVec
29 from CondTools.L1Trigger.L1O2OTags_cfi
import initL1O2OTags
31 tagBaseVec = initL1O2OTags.tagBaseVec
33 process.l1conddb = cms.ESSource(
"PoolDBESSource",
35 connect = cms.string(inputDBConnect),
36 toGet = cms.VPSet(cms.PSet(
37 record = cms.string(
'L1TriggerKeyListRcd'),
38 tag = cms.string(
'L1TriggerKeyList_' + tagBaseVec[ L1CondEnum.L1TriggerKeyList ])
41 record = cms.string(
'L1TriggerKeyRcd'),
42 tag = cms.string(
'L1TriggerKey_' + tagBaseVec[ L1CondEnum.L1TriggerKey ])
45 process.l1conddb.DBParameters.authenticationPath = inputDBAuth
50 if includeAllTags ==
True:
51 if use30XTagList ==
True:
52 from CondTools.L1Trigger.L1SubsystemParams30X_cfi
import initL1Subsystems
54 from CondTools.L1Trigger.L1SubsystemParams_cfi
import initL1Subsystems
56 process.l1conddb.toGet.extend(initL1Subsystems.params.recordInfo)
57 elif includeRSTags ==
True:
58 from CondTools.L1Trigger.L1RSSubsystemParams_cfi
import initL1RSSubsystems
60 process.l1conddb.toGet.extend(initL1RSSubsystems.params.recordInfo)
62 if applyESPrefer ==
True:
63 process.es_prefer_l1conddb = cms.ESPrefer(
"PoolDBESSource",
"l1conddb")