CMS 3D CMS Logo

Functions
addPoolDBESSource Namespace Reference

Functions

def addPoolDBESSource (process, moduleName, record, tag, label='', connect='sqlite_file:')
 

Function Documentation

◆ addPoolDBESSource()

def addPoolDBESSource.addPoolDBESSource (   process,
  moduleName,
  record,
  tag,
  label = '',
  connect = 'sqlite_file:' 
)

Definition at line 3 of file addPoolDBESSource.py.

3 def addPoolDBESSource(process,moduleName,record,tag,label='',connect='sqlite_file:'): from CondCore.DBCommon.CondDBSetup_cfi import CondDBSetup
4  calibDB = cms.ESSource("PoolDBESSource",
5  CondDBSetup,
6  timetype = cms.string('runnumber'),
7  toGet = cms.VPSet(cms.PSet(
8  record = cms.string(record),
9  tag = cms.string(tag),
10  label = cms.untracked.string(label)
11  )),
12  connect = cms.string(connect),
13  authenticationMethod = cms.untracked.uint32(0))
14  #if authPath: calibDB.DBParameters.authenticationPath = authPath
15  if connect.find('oracle:') != -1: calibDB.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb'
16  setattr(process,moduleName,calibDB)
17  setattr(process,"es_prefer_" + moduleName,cms.ESPrefer('PoolDBESSource',moduleName))
18 
addPoolDBESSource.addPoolDBESSource
def addPoolDBESSource(process, moduleName, record, tag, label='', connect='sqlite_file:')
Definition: addPoolDBESSource.py:3
CondDBSetup_cfi