2 outputDBConnect = 'sqlite_file:l1config.db
', outputDBAuth = '.',
5 import FWCore.ParameterSet.Config
as cms
6 from CondTools.L1Trigger.L1CondEnum_cfi
import L1CondEnum
8 if len( tagBaseVec ) == 0:
9 from CondTools.L1Trigger.L1UniformTags_cfi
import initL1UniformTags
11 tagBaseVec = initL1UniformTags.tagBaseVec
13 process.load(
'CondTools.L1Trigger.L1CondDBIOVWriter_cfi')
14 process.L1CondDBIOVWriter.tscKey = cms.string( tscKey )
17 initIOVWriter.outputDB = cms.Service(
"PoolDBOutputService",
19 connect = cms.string(outputDBConnect),
20 toPut = cms.VPSet(cms.PSet(
21 record = cms.string(
"L1TriggerKeyRcd"),
22 tag = cms.string(
"L1TriggerKey_" + tagBaseVec[ L1CondEnum.L1TriggerKey ])),
24 record = cms.string(
"L1TriggerKeyListRcd"),
25 tag = cms.string(
"L1TriggerKeyList_" + tagBaseVec[ L1CondEnum.L1TriggerKeyList ]))
27 initIOVWriter.outputDB.DBParameters.authenticationPath = outputDBAuth
29 from CondTools.L1Trigger.L1SubsystemParams_cfi
import initL1Subsystems
31 initIOVWriter.outputDB.toPut.extend(initL1Subsystems.params.recordInfo)
32 process.add_(initIOVWriter.outputDB)