CMS 3D CMS Logo

EcalDAQ_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 = "EcalDAQTowerStatusRcd"
6 tagTimeType = "runnumber"
7 
8 process = setup_popcon( recordName, tagTimeType )
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_reader_account = 'CMS_ECAL_R'
23 db_service,db_user,db_pwd = auth.get_db_credentials( db_reader_account )
24 
25 process.conf_o2o = cms.EDAnalyzer("ExTestEcalDAQAnalyzer",
26  SinceAppendMode = cms.bool(True),
27  record = cms.string( recordName ),
28  loggingOn = cms.untracked.bool(True),
29  Source = cms.PSet(
30  firstRun = cms.string('121756'),
31  lastRun = cms.string('100000000'),
32  OnlineDBUser = cms.string(db_user),
33  debug = cms.bool(False),
34  OnlineDBPassword = cms.string(db_pwd),
35  OnlineDBSID = cms.string(db_service),
36  location = cms.string('P5_Co'),
37 # runtype = cms.string('Cosmic'),
38  runtype = cms.string('BEAM'),
39  gentag = cms.string('GLOBAL')
40  ),
41  targetDBConnectionString = cms.untracked.string(str(options.destinationDatabase))
42 )
43 
44 process.p = cms.Path(process.conf_o2o)
45 
popcon2dropbox_job_conf.psetForRecord
def psetForRecord(recordName)
Definition: popcon2dropbox_job_conf.py:52
str
#define str(s)
Definition: TestProcessor.cc:48
popcon2dropbox_job_conf.setup_popcon
def setup_popcon(recordName, tagTimeType)
Definition: popcon2dropbox_job_conf.py:24