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 =
"EcalDAQTowerStatusRcd" 6 tagTimeType =
"runnumber" 11 process.MessageLogger = cms.Service(
"MessageLogger",
12 debugModules = cms.untracked.vstring(
'*'),
13 destinations = cms.untracked.vstring(
'cout')
16 process.essource = cms.ESSource(
"PoolDBESSource",
17 connect = cms.string(
str(options.destinationDatabase) ),
18 DumpStat=cms.untracked.bool(
True),
22 db_service,db_user,db_pwd = auth.get_readOnly_db_credentials()
24 process.conf_o2o = cms.EDAnalyzer(
"ExTestEcalDAQAnalyzer",
25 SinceAppendMode = cms.bool(
True),
26 record = cms.string( recordName ),
27 loggingOn = cms.untracked.bool(
True),
29 firstRun = cms.string(
'121756'),
30 lastRun = cms.string(
'100000000'),
31 OnlineDBUser = cms.string(db_user),
32 debug = cms.bool(
False),
33 OnlineDBPassword = cms.string(db_pwd),
34 OnlineDBSID = cms.string(db_service),
35 location = cms.string(
'P5_Co'),
37 runtype = cms.string(
'BEAM'),
38 gentag = cms.string(
'GLOBAL')
40 targetDBConnectionString = cms.untracked.string(
str(options.destinationDatabase))
43 process.p = cms.Path(process.conf_o2o)
def psetForRecord(recordName)
def setup_popcon(recordName, tagTimeType)