/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondTools/Ecal/python/EcalLaser_express_popcon.py
45 строк
2 KB
Giacomo Govi
Clean up for python db credentials management; Adding deployment details for ESGain O2O
04 дек 2019, 12:32
04 дек 2019, 12:32
a2c373a
Код
Авторство
О чём код?
import FWCore.ParameterSet.Config as cms from CondCore.Utilities.popcon2dropbox_job_conf import options, psetForRecord, setup_popcon import CondTools.Ecal.db_credentials as auth recordName = "EcalLaserAPDPNRatiosRcd" tagTimeType = "timestamp" process = setup_popcon( recordName, tagTimeType ) process.MessageLogger = cms.Service("MessageLogger", debugModules = cms.untracked.vstring('*'), destinations = cms.untracked.vstring('cout') ) process.essource = cms.ESSource("PoolDBESSource", connect = cms.string( str(options.destinationDatabase)), DumpStat=cms.untracked.bool(True), toGet = cms.VPSet( psetForRecord( recordName ) ) ) db_reader_account = 'CMS_ECAL_R' db_service,db_user,db_pwd = auth.get_db_credentials( db_reader_account ) process.conf_o2o = cms.EDAnalyzer("ExTestEcalLaserAnalyzer", SinceAppendMode = cms.bool(True), record = cms.string( recordName ), loggingOn = cms.untracked.bool(True), Source = cms.PSet( # maxtime is mandatory # it can be expressed either as an absolute time with format YYYY-MM-DD HH24:MI:SS # or as a relative time w.r.t. now, using -N, where N is expressed in units of hours maxtime = cms.string("-1"), sequences = cms.string("20"), OnlineDBUser = cms.string(db_user), # debug must be False for production debug = cms.bool(False), # if fake is True, no insertion in the db is performed fake = cms.bool(False), OnlineDBPassword = cms.string(db_pwd), OnlineDBSID = cms.string(db_service) ), targetDBConnectionString = cms.untracked.string(str(options.destinationDatabase)) ) process.p = cms.Path(process.conf_o2o)