CMS 3D CMS Logo

Functions
L1CondDBIOVWriter_cff Namespace Reference

Functions

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

Function Documentation

◆ initIOVWriter()

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

Definition at line 1 of file L1CondDBIOVWriter_cff.py.

1 def initIOVWriter( process,
2  outputDBConnect = 'sqlite_file:l1config.db', outputDBAuth = '.',
3  tagBaseVec = [],
4  tscKey = 'dummy' ):
5  import FWCore.ParameterSet.Config as cms
6  from CondTools.L1Trigger.L1CondEnum_cfi import L1CondEnum
7 
8  if len( tagBaseVec ) == 0:
9  from CondTools.L1Trigger.L1UniformTags_cfi import initL1UniformTags
11  tagBaseVec = initL1UniformTags.tagBaseVec
12 
13  process.load('CondTools.L1Trigger.L1CondDBIOVWriter_cfi')
14  process.L1CondDBIOVWriter.tscKey = cms.string( tscKey )
15 
16  from CondCore.DBCommon.CondDBSetup_cfi import CondDBSetup
17  initIOVWriter.outputDB = cms.Service("PoolDBOutputService",
18  CondDBSetup,
19  connect = cms.string(outputDBConnect),
20  toPut = cms.VPSet(cms.PSet(
21  record = cms.string("L1TriggerKeyRcd"),
22  tag = cms.string("L1TriggerKey_" + tagBaseVec[ L1CondEnum.L1TriggerKey ])),
23  cms.PSet(
24  record = cms.string("L1TriggerKeyListRcd"),
25  tag = cms.string("L1TriggerKeyList_" + tagBaseVec[ L1CondEnum.L1TriggerKeyList ]))
26  ))
27  initIOVWriter.outputDB.DBParameters.authenticationPath = outputDBAuth
28 
29  from CondTools.L1Trigger.L1SubsystemParams_cfi import initL1Subsystems
30  initL1Subsystems( tagBaseVec = tagBaseVec )
31  initIOVWriter.outputDB.toPut.extend(initL1Subsystems.params.recordInfo)
32  process.add_(initIOVWriter.outputDB)
33 

References L1SubsystemParams30X_cfi.initL1Subsystems(), and L1UniformTags_cfi.initL1UniformTags().

L1UniformTags_cfi.initL1UniformTags
def initL1UniformTags(tagBase="IDEAL")
Definition: L1UniformTags_cfi.py:1
L1SubsystemParams30X_cfi.initL1Subsystems
def initL1Subsystems(tagBaseVec=[], objectKey='dummy')
Definition: L1SubsystemParams30X_cfi.py:1
L1CondDBIOVWriter_cff.initIOVWriter
def initIOVWriter(process, outputDBConnect='sqlite_file:l1config.db', outputDBAuth='.', tagBaseVec=[], tscKey='dummy')
Definition: L1CondDBIOVWriter_cff.py:1
CondDBSetup_cfi