CMS 3D CMS Logo

EcalDAQ_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 = "EcalDAQTowerStatusRcd"
5 tagTimeType = "runnumber"
6 
7 process = setup_popcon( recordName, tagTimeType )
8 
9 
10 process.MessageLogger = cms.Service("MessageLogger",
11  debugModules = cms.untracked.vstring('*'),
12  destinations = cms.untracked.vstring('cout')
13 )
14 
15 process.essource = cms.ESSource("PoolDBESSource",
16  connect = cms.string( str(options.destinationDatabase) ),
17  DumpStat=cms.untracked.bool(True),
18  toGet = cms.VPSet( psetForRecord( recordName ) )
19 )
20 
21 db_service,db_user,db_pwd = auth.get_readOnly_db_credentials()
22 
23 process.conf_o2o = cms.EDAnalyzer("ExTestEcalDAQAnalyzer",
24  SinceAppendMode = cms.bool(True),
25  record = cms.string( recordName ),
26  loggingOn = cms.untracked.bool(True),
27  Source = cms.PSet(
28  firstRun = cms.string('121756'),
29  lastRun = cms.string('100000000'),
30  OnlineDBUser = cms.string(db_user),
31  debug = cms.bool(False),
32  OnlineDBPassword = cms.string(db_pwd),
33  OnlineDBSID = cms.string(db_service),
34  location = cms.string('P5_Co'),
35 # runtype = cms.string('Cosmic'),
36  runtype = cms.string('BEAM'),
37  gentag = cms.string('GLOBAL')
38  ),
39  targetDBConnectionString = cms.untracked.string(str(options.destinationDatabase))
40 )
41 
42 process.p = cms.Path(process.conf_o2o)
43 
def setup_popcon(recordName, tagTimeType)
#define str(s)