Go to the documentation of this file.00001 def initPayloadWriter( process,
00002 outputDBConnect = 'sqlite_file:l1config.db',
00003 outputDBAuth = '.',
00004 tagBaseVec = [] ):
00005 import FWCore.ParameterSet.Config as cms
00006 from CondTools.L1Trigger.L1CondEnum_cfi import L1CondEnum
00007
00008 if len( tagBaseVec ) == 0:
00009 from CondTools.L1Trigger.L1UniformTags_cfi import initL1UniformTags
00010 initL1UniformTags()
00011 tagBaseVec = initL1UniformTags.tagBaseVec
00012
00013 process.load('CondTools.L1Trigger.L1CondDBPayloadWriter_cfi')
00014
00015 from CondCore.DBCommon.CondDBSetup_cfi import CondDBSetup
00016 initPayloadWriter.outputDB = cms.Service("PoolDBOutputService",
00017 CondDBSetup,
00018 connect = cms.string(outputDBConnect),
00019 toPut = cms.VPSet(cms.PSet(
00020 record = cms.string("L1TriggerKeyListRcd"),
00021 tag = cms.string("L1TriggerKeyList_" + tagBaseVec[ L1CondEnum.L1TriggerKeyList ]))
00022 ))
00023 initPayloadWriter.outputDB.DBParameters.authenticationPath = outputDBAuth
00024 process.add_(initPayloadWriter.outputDB)