/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondTools/Ecal/python/ESGainPopConTransitionAnalyzer_cfg.py
43 строки
3 KB
Pierre Depasse
ECAL : automatic Ecal Preshower Gain Switching in DB, by O2O, for 4 ES hlt tags
09 апр 2019, 09:11
09 апр 2019, 09:11
76a045a
Код
Авторство
О чём код?
import FWCore.ParameterSet.Config as cms from CondCore.CondDB.CondDB_cfi import * import CondTools.Ecal.conddb_init as conddb_init process = cms.Process("ESGainPopulator") process.MessageLogger = cms.Service("MessageLogger", destinations = cms.untracked.vstring("cout"), cout = cms.untracked.PSet(threshold = cms.untracked.string("INFO")) ) process.source = cms.Source("EmptyIOVSource", lastValue = cms.uint64(conddb_init.options.runNumber), timetype = cms.string('runnumber'), firstValue = cms.uint64(conddb_init.options.runNumber), interval = cms.uint64(1) ) CondDBConnection = CondDB.clone(connect = cms.string(conddb_init.options.destinationDatabase)) process.PoolDBOutputService = cms.Service("PoolDBOutputService", CondDBConnection, toPut = cms.VPSet(cms.PSet(record = cms.string("ESGainRcd"), tag = cms.string(conddb_init.options.destinationTag) ) ) ) process.popConESGain = cms.EDAnalyzer("ESGainPopConTransitionAnalyzer", SinceAppendMode = cms.bool(True), record = cms.string("ESGainRcd"), Source = cms.PSet(ESTransition = cms.PSet(CondDBConnection, #We write and read from the same DB runNumber = cms.uint64(conddb_init.options.runNumber), tagForRunInfo = cms.string(conddb_init.options.tagForRunInfo), ESGain = cms.string(conddb_init.options.ESGain), ESLowGainTag = cms.string(conddb_init.options.ESLowGainTag), ESHighGainTag = cms.string(conddb_init.options.ESHighGainTag) ) ), loggingOn = cms.untracked.bool(True), targetDBConnectionString = cms.untracked.string("") ) process.p = cms.Path(process.popConESGain)