7 import FWCore.ParameterSet.Config
as cms
8 from CondTools.L1Trigger.L1CondEnum_cfi
import L1CondEnum
10 if len( tagBaseVec ) == 0:
11 from CondTools.L1Trigger.L1UniformTags_cfi
import initL1UniformTags
13 tagBaseVec = initL1UniformTags.tagBaseVec
15 process.load(
'CondTools.L1Trigger.L1CondDBIOVWriter_cfi')
16 process.L1CondDBIOVWriter.tscKey = cms.string( tscKey )
19 initIOVWriter.outputDB = cms.Service(
"PoolDBOutputService",
21 connect = cms.string(outputDBConnect),
22 toPut = cms.VPSet(cms.PSet(
23 record = cms.string(
"L1TriggerKeyRcd"),
24 tag = cms.string(
"L1TriggerKey_" + tagBaseVec[ L1CondEnum.L1TriggerKey ])),
26 record = cms.string(
"L1TriggerKeyListRcd"),
27 tag = cms.string(
"L1TriggerKeyList_" + tagBaseVec[ L1CondEnum.L1TriggerKeyList ]))
29 initIOVWriter.outputDB.DBParameters.authenticationPath = outputDBAuth
31 from CondTools.L1Trigger.L1SubsystemParams_cfi
import initL1Subsystems
33 initIOVWriter.outputDB.toPut.extend(initL1Subsystems.params.recordInfo)
34 process.add_(initIOVWriter.outputDB)