File indexing completed on 2024-04-06 12:02:54
0001 import FWCore.ParameterSet.Config as cms
0002 from CondCore.CondDB.CondDB_cfi import *
0003 import CondTools.Ecal.conddb_init as conddb_init
0004
0005 process = cms.Process("ESTimeSampleWeightsPopulator")
0006
0007 process.MessageLogger = cms.Service("MessageLogger",
0008 destinations = cms.untracked.vstring("cout"),
0009 cout = cms.untracked.PSet(threshold = cms.untracked.string("INFO"))
0010 )
0011
0012 process.source = cms.Source("EmptyIOVSource",
0013 lastValue = cms.uint64(conddb_init.options.runNumber),
0014 timetype = cms.string('runnumber'),
0015 firstValue = cms.uint64(conddb_init.options.runNumber),
0016 interval = cms.uint64(1)
0017 )
0018
0019 CondDBConnection = CondDB.clone(connect = cms.string(conddb_init.options.destinationDatabase))
0020
0021 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0022 CondDBConnection,
0023 toPut = cms.VPSet(cms.PSet(record = cms.string("ESTimeSampleWeightsRcd"),
0024 tag = cms.string(conddb_init.options.destinationTag)
0025 )
0026 )
0027 )
0028
0029 process.popConESTimeSampleWeights = cms.EDAnalyzer("ESTimeSampleWeightsPopConTransitionAnalyzer",
0030 SinceAppendMode = cms.bool(True),
0031 record = cms.string("ESTimeSampleWeightsRcd"),
0032 Source = cms.PSet(ESTransition = cms.PSet(CondDBConnection,
0033 runNumber = cms.uint64(conddb_init.options.runNumber),
0034 tagForRunInfo = cms.string(conddb_init.options.tagForRunInfo),
0035 ESGain = cms.string(conddb_init.options.ESGain),
0036 ESLowGainTag = cms.string(conddb_init.options.ESLowGainTag),
0037 ESHighGainTag = cms.string(conddb_init.options.ESHighGainTag) )
0038 ),
0039 loggingOn = cms.untracked.bool(True),
0040 targetDBConnectionString = cms.untracked.string("")
0041 )
0042
0043 process.p = cms.Path(process.popConESTimeSampleWeights)