CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
L1CondDBPayloadWriterExt_cff Namespace Reference

Functions

def initPayloadWriterExt
 

Function Documentation

def L1CondDBPayloadWriterExt_cff.initPayloadWriterExt (   process,
  outputDBConnect = 'sqlite_file:l1config.db',
  outputDBAuth = '.',
  tagBaseVec = [] 
)

Definition at line 4 of file L1CondDBPayloadWriterExt_cff.py.

References L1UniformTagsExt_cfi.initL1UniformTagsExt().

4 
5  tagBaseVec = [] ):
6  import FWCore.ParameterSet.Config as cms
7  from CondTools.L1TriggerExt.L1CondEnumExt_cfi import L1CondEnumExt
8 
9  if len( tagBaseVec ) == 0:
10  from CondTools.L1TriggerExt.L1UniformTagsExt_cfi import initL1UniformTagsExt
12  tagBaseVec = initL1UniformTagsExt.tagBaseVec
13 
14  process.load('CondTools.L1TriggerExt.L1CondDBPayloadWriterExt_cfi')
15 
16  from CondCore.CondDB.CondDB_cfi import CondDB
17  CondDB.connect = cms.string(outputDBConnect)
18 
19  initPayloadWriterExt.outputDB = cms.Service("PoolDBOutputService",
20  CondDB,
21  toPut = cms.VPSet(cms.PSet(
22  record = cms.string("L1TriggerKeyListExtRcd"),
23  tag = cms.string("L1TriggerKeyListExt_" + tagBaseVec[ L1CondEnumExt.L1TriggerKeyListExt ]))
24  ))
25  initPayloadWriterExt.outputDB.DBParameters.authenticationPath = outputDBAuth
26 
27  process.add_(initPayloadWriterExt.outputDB)