1 import FWCore.ParameterSet.Config
as cms
3 process = cms.Process(
"TEST")
4 process.load(
"CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
5 process.EcalTrivialConditionRetriever.producedEcalPFRecHitThresholds = cms.untracked.bool(
True)
6 process.EcalTrivialConditionRetriever.EcalPFRecHitThresholdsEB = cms.untracked.double( 0.0)
7 process.EcalTrivialConditionRetriever.EcalPFRecHitThresholdsEE = cms.untracked.double( 0.0)
8 process.EcalTrivialConditionRetriever.PFRecHitFile = cms.untracked.string(
"EB_thresholds_-1.txt")
9 process.EcalTrivialConditionRetriever.PFRecHitFileEE = cms.untracked.string(
"EE_thresholds_-1.txt")
12 process.load(
"CondCore.CondDB.CondDB_cfi")
15 process.CondDB.connect =
'sqlite_file:DB.db' 17 process.MessageLogger = cms.Service(
"MessageLogger",
18 debugModules = cms.untracked.vstring(
'*'),
19 destinations = cms.untracked.vstring(
'cout')
22 process.source = cms.Source(
"EmptyIOVSource",
23 firstValue = cms.uint64(1),
24 lastValue = cms.uint64(1),
25 timetype = cms.string(
'runnumber'),
26 interval = cms.uint64(1)
29 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
33 record = cms.string(
'EcalPFRecHitThresholdsRcd'),
34 tag = cms.string(
'EcalPFRecHitThresholds_2018_def_mc')
39 process.dbCopy = cms.EDAnalyzer(
"EcalDBCopy",
40 timetype = cms.string(
'runnumber'),
43 record = cms.string(
'EcalPFRecHitThresholdsRcd'),
44 container = cms.string(
'EcalPFRecHitThresholds')
49 process.prod = cms.EDAnalyzer(
"EcalTrivialObjectAnalyzer")
51 process.p = cms.Path(process.prod*process.dbCopy)