1 import FWCore.ParameterSet.Config
as cms
3 import CondTools.Ecal.conddb_init
as conddb_init
5 process = cms.Process(
"ESTimeSampleWeightsPopulator")
7 process.MessageLogger = cms.Service(
"MessageLogger",
8 destinations = cms.untracked.vstring(
"cout"),
9 cout = cms.untracked.PSet(threshold = cms.untracked.string(
"INFO"))
12 process.source = cms.Source(
"EmptyIOVSource",
13 lastValue = cms.uint64(conddb_init.options.runNumber),
14 timetype = cms.string(
'runnumber'),
15 firstValue = cms.uint64(conddb_init.options.runNumber),
16 interval = cms.uint64(1)
19 CondDBConnection = CondDB.clone(connect = cms.string(conddb_init.options.destinationDatabase))
21 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
23 toPut = cms.VPSet(cms.PSet(record = cms.string(
"ESTimeSampleWeightsRcd"),
24 tag = cms.string(conddb_init.options.destinationTag)
29 process.popConESTimeSampleWeights = cms.EDAnalyzer(
"ESTimeSampleWeightsPopConTransitionAnalyzer",
30 SinceAppendMode = cms.bool(
True),
31 record = cms.string(
"ESTimeSampleWeightsRcd"),
32 Source = cms.PSet(ESTransition = cms.PSet(CondDBConnection,
33 runNumber = cms.uint64(conddb_init.options.runNumber),
34 tagForRunInfo = cms.string(conddb_init.options.tagForRunInfo),
35 ESGain = cms.string(conddb_init.options.ESGain),
36 ESLowGainTag = cms.string(conddb_init.options.ESLowGainTag),
37 ESHighGainTag = cms.string(conddb_init.options.ESHighGainTag) )
39 loggingOn = cms.untracked.bool(
True),
40 targetDBConnectionString = cms.untracked.string(
"")
43 process.p = cms.Path(process.popConESTimeSampleWeights)