4 def addPoolDBESSource(process,moduleName,record,tag,label='',connect='sqlite_file:
'):
6 calibDB = cms.ESSource(
"PoolDBESSource",
8 timetype = cms.string(
'runnumber'),
9 toGet = cms.VPSet(cms.PSet(
10 record = cms.string(record),
11 tag = cms.string(tag),
12 label = cms.untracked.string(label)
14 connect = cms.string(connect),
15 authenticationMethod = cms.untracked.uint32(0))
17 if connect.find(
'oracle:') != -1: calibDB.DBParameters.authenticationPath =
'/afs/cern.ch/cms/DB/conddb'
18 setattr(process,moduleName,calibDB)
19 setattr(process,
"es_prefer_" + moduleName,cms.ESPrefer(
'PoolDBESSource',moduleName))