17 applyESPrefer =
True ):
18 import FWCore.ParameterSet.Config
as cms
19 from CondTools.L1TriggerExt.L1CondEnumExt_cfi
import L1CondEnumExt
21 if len( tagBaseVec ) == 0:
22 if len( tagBase ) != 0:
23 from CondTools.L1TriggerExt.L1UniformTagsExt_cfi
import initL1UniformTagsExt
25 tagBaseVec = initL1UniformTagsExt.tagBaseVec
27 from CondTools.L1TriggerExt.L1O2OTagsExt_cfi
import initL1O2OTagsExt
29 tagBaseVec = initL1O2OTagsExt.tagBaseVec
32 CondDB.connect = cms.string(inputDBConnect)
34 process.l1conddb = cms.ESSource(
"PoolDBESSource",
36 toGet = cms.VPSet(cms.PSet(
37 record = cms.string(
'L1TriggerKeyListExtRcd'),
38 tag = cms.string(
'L1TriggerKeyListExt_' + tagBaseVec[ L1CondEnumExt.L1TriggerKeyListExt ])
41 record = cms.string(
'L1TriggerKeyExtRcd'),
42 tag = cms.string(
'L1TriggerKeyExt_' + tagBaseVec[ L1CondEnumExt.L1TriggerKeyExt ])
45 process.l1conddb.DBParameters.authenticationPath = inputDBAuth
50 if includeAllTags ==
True:
51 from CondTools.L1TriggerExt.L1SubsystemParamsExt_cfi
import initL1SubsystemsExt
53 process.l1conddb.toGet.extend(initL1SubsystemsExt.params.recordInfo)
54 elif includeRSTags ==
True:
55 from CondTools.L1TriggerExt.L1RSSubsystemParamsExt_cfi
import initL1RSSubsystemsExt
57 process.l1conddb.toGet.extend(initL1RSSubsystemsExt.params.recordInfo)
59 if applyESPrefer ==
True:
60 process.es_prefer_l1conddb = cms.ESPrefer(
"PoolDBESSource",
"l1conddb")