6 import FWCore.ParameterSet.Config
as cms
7 from CondTools.L1Trigger.L1CondEnum_cfi
import L1CondEnum
9 if len( tagBaseVec ) == 0:
10 from CondTools.L1Trigger.L1UniformTags_cfi
import initL1UniformTags
12 tagBaseVec = initL1UniformTags.tagBaseVec
14 process.load(
'CondTools.L1Trigger.L1CondDBIOVWriter_cfi')
15 process.L1CondDBIOVWriter.tscKey = cms.string( tscKey )
18 initIOVWriter.outputDB = cms.Service(
"PoolDBOutputService",
20 connect = cms.string(outputDBConnect),
21 toPut = cms.VPSet(cms.PSet(
22 record = cms.string(
"L1TriggerKeyRcd"),
23 tag = cms.string(
"L1TriggerKey_" + tagBaseVec[ L1CondEnum.L1TriggerKey ])),
25 record = cms.string(
"L1TriggerKeyListRcd"),
26 tag = cms.string(
"L1TriggerKeyList_" + tagBaseVec[ L1CondEnum.L1TriggerKeyList ]))
28 initIOVWriter.outputDB.DBParameters.authenticationPath = outputDBAuth
30 from CondTools.L1Trigger.L1SubsystemParams_cfi
import initL1Subsystems
32 initIOVWriter.outputDB.toPut.extend(initL1Subsystems.params.recordInfo)
33 process.add_(initIOVWriter.outputDB)
34
def initL1Subsystems(tagBaseVec=[], objectKey='dummy')