1 import FWCore.ParameterSet.Config
as cms
2 from CondCore.Utilities.popcon2dropbox_job_conf
import options, psetForRecord, setup_popcon
3 import CondTools.Ecal.db_credentials
as auth
5 recordName =
"EcalDCSTowerStatusRcd" 6 tagTimeType =
"runnumber" 12 process.MessageLogger = cms.Service(
"MessageLogger",
13 debugModules = cms.untracked.vstring(
'*'),
14 destinations = cms.untracked.vstring(
'cout')
17 process.essource = cms.ESSource(
"PoolDBESSource",
18 connect = cms.string(
str(options.destinationDatabase) ),
19 DumpStat=cms.untracked.bool(
True),
23 db_service,db_user,db_pwd = auth.get_readOnly_db_credentials()
25 process.conf_o2o = cms.EDAnalyzer(
"ExTestEcalDCSAnalyzer",
26 SinceAppendMode = cms.bool(
True),
27 record = cms.string(recordName),
28 loggingOn = cms.untracked.bool(
True),
30 firstRun = cms.string(
'210000'),
31 lastRun = cms.string(
'100000000'),
32 OnlineDBUser = cms.string(db_user),
33 debug = cms.bool(
True),
34 OnlineDBPassword = cms.string(db_pwd),
35 OnlineDBSID = cms.string(db_service)
37 targetDBConnectionString = cms.untracked.string(
str(options.destinationDatabase))
40 process.p = cms.Path(process.conf_o2o)
def psetForRecord(recordName)
def setup_popcon(recordName, tagTimeType)