CMS 3D CMS Logo

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

Functions

def initPayloadWriter
 

Function Documentation

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

Definition at line 4 of file L1CondDBPayloadWriter_cff.py.

References L1UniformTags_cfi.initL1UniformTags().

4 
5  tagBaseVec = [] ):
6  import FWCore.ParameterSet.Config as cms
7  from CondTools.L1Trigger.L1CondEnum_cfi import L1CondEnum
8 
9  if len( tagBaseVec ) == 0:
10  from CondTools.L1Trigger.L1UniformTags_cfi import initL1UniformTags
12  tagBaseVec = initL1UniformTags.tagBaseVec
13 
14  process.load('CondTools.L1Trigger.L1CondDBPayloadWriter_cfi')
15 
16  from CondCore.DBCommon.CondDBSetup_cfi import CondDBSetup
17  initPayloadWriter.outputDB = cms.Service("PoolDBOutputService",
18  CondDBSetup,
19  connect = cms.string(outputDBConnect),
20  toPut = cms.VPSet(cms.PSet(
21  record = cms.string("L1TriggerKeyListRcd"),
22  tag = cms.string("L1TriggerKeyList_" + tagBaseVec[ L1CondEnum.L1TriggerKeyList ]))
23  ))
24  initPayloadWriter.outputDB.DBParameters.authenticationPath = outputDBAuth
25  process.add_(initPayloadWriter.outputDB)