Back to home page

Project CMSSW displayed by LXR

 
 

    


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 = "EcalDCSTowerStatusRcd"
0006 tagTimeType = "runnumber"
0007 
0008 process = setup_popcon( recordName, tagTimeType )
0009 
0010 
0011 
0012 process.MessageLogger = cms.Service("MessageLogger",
0013     debugModules = cms.untracked.vstring('*'),
0014     destinations = cms.untracked.vstring('cout')
0015 )
0016 
0017 process.essource = cms.ESSource("PoolDBESSource",
0018                                 connect = cms.string( str(options.destinationDatabase) ),
0019                                 DumpStat=cms.untracked.bool(True),
0020                                 toGet = cms.VPSet( psetForRecord( recordName ) )
0021 )
0022 
0023 db_reader_account = 'CMS_ECAL_R'
0024 db_service,db_user,db_pwd = auth.get_db_credentials( db_reader_account )
0025 
0026 process.conf_o2o = cms.EDAnalyzer("ExTestEcalDCSAnalyzer",
0027     SinceAppendMode = cms.bool(True),
0028     record = cms.string(recordName),
0029     loggingOn = cms.untracked.bool(True),
0030     Source = cms.PSet(
0031         firstRun = cms.string('210000'),
0032         lastRun = cms.string('100000000'),
0033         OnlineDBUser = cms.string(db_user),
0034         debug = cms.bool(True),
0035         OnlineDBPassword = cms.string(db_pwd),
0036         OnlineDBSID = cms.string(db_service)
0037     ),
0038     targetDBConnectionString = cms.untracked.string(str(options.destinationDatabase))
0039 )
0040 
0041 process.p = cms.Path(process.conf_o2o)
0042