CMS 3D CMS Logo

Functions
L1CondDBIOVWriterExt_cff Namespace Reference

Functions

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

Function Documentation

◆ initIOVWriterExt()

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

Definition at line 1 of file L1CondDBIOVWriterExt_cff.py.

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

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

L1CondDBIOVWriterExt_cff.initIOVWriterExt
def initIOVWriterExt(process, outputDBConnect='sqlite_file:l1config.db', outputDBAuth='.', tagBaseVec=[], tscKey='dummy', rsKey='dummy')
Definition: L1CondDBIOVWriterExt_cff.py:1
L1UniformTagsExt_cfi.initL1UniformTagsExt
def initL1UniformTagsExt(tagBase="IDEAL")
Definition: L1UniformTagsExt_cfi.py:1
L1SubsystemParamsExt_cfi.initL1SubsystemsExt
def initL1SubsystemsExt(tagBaseVec=[], objectKey='dummy')
Definition: L1SubsystemParamsExt_cfi.py:1
CondDB_cfi