1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
import FWCore.ParameterSet.Config as cms
from CondCore.CondDB.CondDB_cfi import *
import CondTools.Ecal.conddb_init as conddb_init
process = cms.Process("EcalIntercalibConstantsPopulator")
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("EcalIntercalibConstantsRcd"),
tag = cms.string(conddb_init.options.destinationTag)
)
)
)
process.popConEcalIntercalibConstants = cms.EDAnalyzer("EcalIntercalibConstantsPopConBTransitionAnalyzer",
SinceAppendMode = cms.bool(True),
record = cms.string("EcalIntercalibConstantsRcd"),
Source = cms.PSet(BTransition = 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),
tagForBOff = cms.string(conddb_init.options.tagForBOff),
tagForBOn = cms.string(conddb_init.options.tagForBOn),
currentThreshold = cms.untracked.double(conddb_init.options.currentThreshold)
)
),
loggingOn = cms.untracked.bool(True),
targetDBConnectionString = cms.untracked.string("")
)
process.p = cms.Path(process.popConEcalIntercalibConstants)
|