2 outputDBConnect = 'sqlite_file:l1config.db
', 5 import FWCore.ParameterSet.Config
as cms
6 from CondTools.L1TriggerExt.L1CondEnumExt_cfi
import L1CondEnumExt
8 if len( tagBaseVec ) == 0:
9 from CondTools.L1TriggerExt.L1UniformTagsExt_cfi
import initL1UniformTagsExt
11 tagBaseVec = initL1UniformTagsExt.tagBaseVec
13 process.load(
'CondTools.L1TriggerExt.L1CondDBPayloadWriterExt_cfi')
16 CondDB.connect = cms.string(outputDBConnect)
18 initPayloadWriterExt.outputDB = cms.Service(
"PoolDBOutputService",
20 toPut = cms.VPSet(cms.PSet(
21 record = cms.string(
"L1TriggerKeyListExtRcd"),
22 tag = cms.string(
"L1TriggerKeyListExt_" + tagBaseVec[ L1CondEnumExt.L1TriggerKeyListExt ]))
24 initPayloadWriterExt.outputDB.DBParameters.authenticationPath = outputDBAuth
26 process.add_(initPayloadWriterExt.outputDB)
def initPayloadWriterExt(process, outputDBConnect='sqlite_file:l1config.db', outputDBAuth='.', tagBaseVec=[])