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_reader_account =
'CMS_ECAL_R'
22 db_service,db_user,db_pwd = auth.get_db_credentials( db_reader_account )
24 process.conf_o2o = cms.EDAnalyzer(
"ExTestEcalLaserAnalyzer",
25 SinceAppendMode = cms.bool(
True),
26 record = cms.string( recordName ),
27 loggingOn = cms.untracked.bool(
True),
32 maxtime = cms.string(
"-1"),
33 sequences = cms.string(
"20"),
34 OnlineDBUser = cms.string(db_user),
36 debug = cms.bool(
False),
38 fake = cms.bool(
False),
39 OnlineDBPassword = cms.string(db_pwd),
40 OnlineDBSID = cms.string(db_service)
42 targetDBConnectionString = cms.untracked.string(
str(options.destinationDatabase))
45 process.p = cms.Path(process.conf_o2o)