CMS 3D CMS Logo

EcalDCS_popcon.py
Go to the documentation of this file.
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
4 
5 recordName = "EcalDCSTowerStatusRcd"
6 tagTimeType = "runnumber"
7 
8 process = setup_popcon( recordName, tagTimeType )
9 
10 
11 
12 process.MessageLogger = cms.Service("MessageLogger",
13  debugModules = cms.untracked.vstring('*'),
14  destinations = cms.untracked.vstring('cout')
15 )
16 
17 process.essource = cms.ESSource("PoolDBESSource",
18  connect = cms.string( str(options.destinationDatabase) ),
19  DumpStat=cms.untracked.bool(True),
20  toGet = cms.VPSet( psetForRecord( recordName ) )
21 )
22 
23 db_reader_account = 'CMS_ECAL_R'
24 db_service,db_user,db_pwd = auth.get_db_credentials( db_reader_account )
25 
26 process.conf_o2o = cms.EDAnalyzer("ExTestEcalDCSAnalyzer",
27  SinceAppendMode = cms.bool(True),
28  record = cms.string(recordName),
29  loggingOn = cms.untracked.bool(True),
30  Source = cms.PSet(
31  firstRun = cms.string('210000'),
32  lastRun = cms.string('100000000'),
33  OnlineDBUser = cms.string(db_user),
34  debug = cms.bool(True),
35  OnlineDBPassword = cms.string(db_pwd),
36  OnlineDBSID = cms.string(db_service)
37  ),
38  targetDBConnectionString = cms.untracked.string(str(options.destinationDatabase))
39 )
40 
41 process.p = cms.Path(process.conf_o2o)
42 
def setup_popcon(recordName, tagTimeType)
#define str(s)