CMS 3D CMS Logo

EcalDCS_popcon.py
Go to the documentation of this file.
1 from CondCore.Utilities.popcon2dropbox_job_conf import options, psetForRecord, setup_popcon
2 import CondTools.Ecal.db_credentials as auth
3 
4 recordName = "EcalDCSTowerStatusRcd"
5 tagTimeType = "runnumber"
6 
7 process = setup_popcon( recordName, tagTimeType )
8 
9 
10 
11 process.MessageLogger = cms.Service("MessageLogger",
12  debugModules = cms.untracked.vstring('*'),
13  destinations = cms.untracked.vstring('cout')
14 )
15 
16 process.essource = cms.ESSource("PoolDBESSource",
17  connect = cms.string( str(options.destinationDatabase) ),
18  DumpStat=cms.untracked.bool(True),
19  toGet = cms.VPSet( psetForRecord( recordName ) )
20 )
21 
22 db_service,db_user,db_pwd = auth.get_readOnly_db_credentials()
23 
24 process.conf_o2o = cms.EDAnalyzer("ExTestEcalDCSAnalyzer",
25  SinceAppendMode = cms.bool(True),
26  record = cms.string(recordName),
27  loggingOn = cms.untracked.bool(True),
28  Source = cms.PSet(
29  firstRun = cms.string('210000'),
30  lastRun = cms.string('100000000'),
31  OnlineDBUser = cms.string(db_user),
32  debug = cms.bool(True),
33  OnlineDBPassword = cms.string(db_pwd),
34  OnlineDBSID = cms.string(db_service)
35  ),
36  targetDBConnectionString = cms.untracked.string(str(options.destinationDatabase))
37 )
38 
39 process.p = cms.Path(process.conf_o2o)
40 
def setup_popcon(recordName, tagTimeType)