10 inputDBConnect =
'frontier://FrontierProd/CMS_CONDITIONS',
14 includeAllTags =
False,
15 includeRSTags =
False,
16 applyESPrefer =
True ):
17 import FWCore.ParameterSet.Config
as cms
18 from CondTools.L1TriggerExt.L1CondEnumExt_cfi
import L1CondEnumExt
20 if len( tagBaseVec ) == 0:
21 if len( tagBase ) != 0:
22 from CondTools.L1TriggerExt.L1UniformTagsExt_cfi
import initL1UniformTagsExt
24 tagBaseVec = initL1UniformTagsExt.tagBaseVec
26 from CondTools.L1TriggerExt.L1O2OTagsExt_cfi
import initL1O2OTagsExt
28 tagBaseVec = initL1O2OTagsExt.tagBaseVec
31 CondDB.connect = cms.string(inputDBConnect)
33 process.l1conddb = cms.ESSource(
"PoolDBESSource",
35 toGet = cms.VPSet(cms.PSet(
36 record = cms.string(
'L1TriggerKeyListExtRcd'),
37 tag = cms.string(
'L1TriggerKeyListExt_' + tagBaseVec[ L1CondEnumExt.L1TriggerKeyListExt ])
40 record = cms.string(
'L1TriggerKeyExtRcd'),
41 tag = cms.string(
'L1TriggerKeyExt_' + tagBaseVec[ L1CondEnumExt.L1TriggerKeyExt ])
44 process.l1conddb.DBParameters.authenticationPath = inputDBAuth
49 if includeAllTags ==
True:
50 from CondTools.L1TriggerExt.L1SubsystemParamsExt_cfi
import initL1SubsystemsExt
52 process.l1conddb.toGet.extend(initL1SubsystemsExt.params.recordInfo)
53 elif includeRSTags ==
True:
54 from CondTools.L1TriggerExt.L1RSSubsystemParamsExt_cfi
import initL1RSSubsystemsExt
56 process.l1conddb.toGet.extend(initL1RSSubsystemsExt.params.recordInfo)
58 if applyESPrefer ==
True:
59 process.es_prefer_l1conddb = cms.ESPrefer(
"PoolDBESSource",
"l1conddb")