CMS 3D CMS Logo

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

Functions

def initIOVWriterExt
 

Function Documentation

def L1CondDBIOVWriterExt_cff.initIOVWriterExt (   process,
  outputDBConnect = 'sqlite_file:l1config.db',
  outputDBAuth = '.',
  tagBaseVec = [],
  tscKey = 'dummy',
  rsKey = 'dummy' 
)

Definition at line 6 of file L1CondDBIOVWriterExt_cff.py.

References L1SubsystemParamsExt_cfi.initL1SubsystemsExt(), and L1UniformTagsExt_cfi.initL1UniformTagsExt().

6 
7  rsKey = 'dummy' ):
8  import FWCore.ParameterSet.Config as cms
9  from CondTools.L1TriggerExt.L1CondEnumExt_cfi import L1CondEnumExt
10 
11  if len( tagBaseVec ) == 0:
12  from CondTools.L1TriggerExt.L1UniformTagsExt_cfi import initL1UniformTagsExt
14  tagBaseVec = initL1UniformTagsExt.tagBaseVec
15 
16  process.load('CondTools.L1TriggerExt.L1CondDBIOVWriterExt_cfi')
17  process.L1CondDBIOVWriterExt.tscKey = cms.string( tscKey )
18  process.L1CondDBIOVWriterExt.rsKey = cms.string( rsKey )
19 
20  from CondCore.CondDB.CondDB_cfi import CondDB
21  CondDB.connect = cms.string(outputDBConnect)
22 
23  initIOVWriterExt.outputDB = cms.Service("PoolDBOutputService",
24  CondDB,
25  toPut = cms.VPSet(cms.PSet(
26  record = cms.string("L1TriggerKeyExtRcd"),
27  tag = cms.string("L1TriggerKeyExt_" + tagBaseVec[ L1CondEnumExt.L1TriggerKeyExt ])),
28  cms.PSet(
29  record = cms.string("L1TriggerKeyListExtRcd"),
30  tag = cms.string("L1TriggerKeyListExt_" + tagBaseVec[ L1CondEnumExt.L1TriggerKeyListExt ]))
31  ))
32  initIOVWriterExt.outputDB.DBParameters.authenticationPath = outputDBAuth
33 
34  from CondTools.L1TriggerExt.L1SubsystemParamsExt_cfi import initL1SubsystemsExt
35  initL1SubsystemsExt( tagBaseVec = tagBaseVec )
36  initIOVWriterExt.outputDB.toPut.extend(initL1SubsystemsExt.params.recordInfo)
37  process.add_(initIOVWriterExt.outputDB)