Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:19

0001 def initPayloadWriterExt( process,
0002                        outputDBConnect = 'sqlite_file:l1config.db',
0003                        outputDBAuth = '.',
0004                        tagBaseVec = [] ):
0005     import FWCore.ParameterSet.Config as cms
0006     from CondTools.L1TriggerExt.L1CondEnumExt_cfi import L1CondEnumExt
0007 
0008     if len( tagBaseVec ) == 0:
0009         from CondTools.L1TriggerExt.L1UniformTagsExt_cfi import initL1UniformTagsExt
0010         initL1UniformTagsExt()
0011         tagBaseVec = initL1UniformTagsExt.tagBaseVec
0012                                     
0013     process.load('CondTools.L1TriggerExt.L1CondDBPayloadWriterExt_cfi')
0014     
0015     from CondCore.CondDB.CondDB_cfi import CondDB
0016     CondDB.connect = cms.string(outputDBConnect)
0017 
0018     initPayloadWriterExt.outputDB = cms.Service("PoolDBOutputService",
0019                                              CondDB,
0020                                              toPut = cms.VPSet(cms.PSet(
0021         record = cms.string("L1TriggerKeyListExtRcd"),
0022         tag = cms.string("L1TriggerKeyListExt_" + tagBaseVec[ L1CondEnumExt.L1TriggerKeyListExt ]))
0023                                                                ))
0024     initPayloadWriterExt.outputDB.DBParameters.authenticationPath = outputDBAuth
0025 
0026     process.add_(initPayloadWriterExt.outputDB)