/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondTools/Ecal/test/preshower/writeESChannelStatus.py
49 строк
2 KB
Christopher Jones
Updated configurations in CondTools/Ecal to new MessageLogger syntax
20 ноя 2020, 17:27
20 ноя 2020, 17:27
505d069
Код
Авторство
О чём код?
import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") #process.load("CondCore.DBCommon.CondDBCommon_cfi") process.load("CondCore.CondDB.CondDB_cfi") #process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_39X_PRESHOWER' #process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb' process.CondDB.connect = 'sqlite_file:ESChannelStatus.db' process.MessageLogger = cms.Service("MessageLogger", cerr = cms.untracked.PSet( enable = cms.untracked.bool(False) ), cout = cms.untracked.PSet( enable = cms.untracked.bool(True) ), debugModules = cms.untracked.vstring('*') ) process.source = cms.Source("EmptyIOVSource", firstValue = cms.uint64(1), lastValue = cms.uint64(1), timetype = cms.string('runnumber'), interval = cms.uint64(1) ) process.PoolDBOutputService = cms.Service("PoolDBOutputService", process.CondDB, timetype = cms.untracked.string('runnumber'), toPut = cms.VPSet(cms.PSet( record = cms.string('ESChannelStatusRcd'), tag = cms.string('ESChannelStatus') ))) process.ecalModule = cms.EDAnalyzer("StoreESCondition", gain = cms.uint32(1), logfile = cms.string('./logfile.log'), toPut = cms.VPSet(cms.PSet( # channel status conditionType = cms.untracked.string('ESChannelStatus'), #inputFile = cms.untracked.string('CondTools/Ecal/test/preshower/channelStatus_20110809.txt') since = cms.untracked.uint32(250000), inputFile = cms.untracked.string('CondTools/Ecal/test/preshower/ESChannelStatus.txt') ))) process.p = cms.Path(process.ecalModule)