File indexing completed on 2024-04-06 12:02:53
0001 import FWCore.ParameterSet.Config as cms
0002 from CondCore.Utilities.popcon2dropbox_job_conf import options, psetForRecord, setup_popcon
0003 import CondTools.Ecal.db_credentials as auth
0004
0005 recordName = "EcalDAQTowerStatusRcd"
0006 tagTimeType = "runnumber"
0007
0008 process = setup_popcon( recordName, tagTimeType )
0009
0010
0011 process.MessageLogger = cms.Service("MessageLogger",
0012 debugModules = cms.untracked.vstring('*'),
0013 destinations = cms.untracked.vstring('cout')
0014 )
0015
0016 process.essource = cms.ESSource("PoolDBESSource",
0017 connect = cms.string( str(options.destinationDatabase) ),
0018 DumpStat=cms.untracked.bool(True),
0019 toGet = cms.VPSet( psetForRecord( recordName ) )
0020 )
0021
0022 db_reader_account = 'CMS_ECAL_R'
0023 db_service,db_user,db_pwd = auth.get_db_credentials( db_reader_account )
0024
0025 process.conf_o2o = cms.EDAnalyzer("ExTestEcalDAQAnalyzer",
0026 SinceAppendMode = cms.bool(True),
0027 record = cms.string( recordName ),
0028 loggingOn = cms.untracked.bool(True),
0029 Source = cms.PSet(
0030 firstRun = cms.string('121756'),
0031 lastRun = cms.string('100000000'),
0032 OnlineDBUser = cms.string(db_user),
0033 debug = cms.bool(False),
0034 OnlineDBPassword = cms.string(db_pwd),
0035 OnlineDBSID = cms.string(db_service),
0036 location = cms.string('P5_Co'),
0037
0038 runtype = cms.string('BEAM'),
0039 gentag = cms.string('GLOBAL')
0040 ),
0041 targetDBConnectionString = cms.untracked.string(str(options.destinationDatabase))
0042 )
0043
0044 process.p = cms.Path(process.conf_o2o)
0045