CMS 3D CMS Logo

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

Functions

def initIOVWriter
 

Function Documentation

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

Definition at line 5 of file L1CondDBIOVWriter_cff.py.

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

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