1 import FWCore.ParameterSet.Config
as cms
3 import CondTools.Ecal.conddb_init
as conddb_init
5 process = cms.Process(
"EBAlignmentPopulator")
8 process.MessageLogger = cms.Service(
"MessageLogger",
9 destinations = cms.untracked.vstring(
"cout"),
10 debugModules = cms.untracked.vstring(
"*"),
11 cout = cms.untracked.PSet(threshold = cms.untracked.string(
"DEBUG"))
14 process.source = cms.Source(
"EmptyIOVSource",
15 lastValue = cms.uint64(conddb_init.options.runNumber),
16 timetype = cms.string(
'runnumber'),
17 firstValue = cms.uint64(conddb_init.options.runNumber),
18 interval = cms.uint64(1)
21 CondDBConnection = CondDB.clone(connect = cms.string(conddb_init.options.destinationDatabase))
23 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
25 toPut = cms.VPSet(cms.PSet(record = cms.string(
"EBAlignmentRcd"),
26 tag = cms.string(conddb_init.options.destinationTag)
31 process.popConEBAlignment = cms.EDAnalyzer(
"EcalAlignmentPopConBTransitionAnalyzer",
32 SinceAppendMode = cms.bool(
True),
33 record = cms.string(
"EBAlignmentRcd"),
34 Source = cms.PSet(BTransition = cms.PSet(CondDBConnection,
35 runNumber = cms.uint64(conddb_init.options.runNumber),
36 tagForRunInfo = cms.string(conddb_init.options.tagForRunInfo),
37 tagForBOff = cms.string(conddb_init.options.tagForBOff),
38 tagForBOn = cms.string(conddb_init.options.tagForBOn),
39 currentThreshold = cms.untracked.double(conddb_init.options.currentThreshold)
42 loggingOn = cms.untracked.bool(
True),
43 targetDBConnectionString = cms.untracked.string(
"")
46 process.p = cms.Path(process.popConEBAlignment)