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 =
"EcalLaserAPDPNRatiosRcd" 6 tagTimeType =
"timestamp" 10 process.MessageLogger = cms.Service(
"MessageLogger",
11 debugModules = cms.untracked.vstring(
'*'),
12 destinations = cms.untracked.vstring(
'cout')
15 process.essource = cms.ESSource(
"PoolDBESSource",
16 connect = cms.string(
str(options.destinationDatabase)),
17 DumpStat=cms.untracked.bool(
True),
21 db_service,db_user,db_pwd = auth.get_readOnly_db_credentials()
23 process.conf_o2o = cms.EDAnalyzer(
"ExTestEcalLaserAnalyzer",
24 SinceAppendMode = cms.bool(
True),
25 record = cms.string( recordName ),
26 loggingOn = cms.untracked.bool(
True),
31 maxtime = cms.string(
"-30"),
32 sequences = cms.string(
"20"),
33 OnlineDBUser = cms.string(db_user),
35 debug = cms.bool(
False),
37 fake = cms.bool(
False),
38 OnlineDBPassword = cms.string(db_pwd),
39 OnlineDBSID = cms.string(db_service)
41 targetDBConnectionString = cms.untracked.string(
str(options.destinationDatabase))
44 process.p = cms.Path(process.conf_o2o)
def psetForRecord(recordName)
def setup_popcon(recordName, tagTimeType)