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)
10 process.load(
"CondCore.CondDB.CondDB_cfi")
13 process.CondDB.connect =
'sqlite_file:DB.db' 15 process.MessageLogger = cms.Service(
"MessageLogger",
16 cerr = cms.untracked.PSet(
17 enable = cms.untracked.bool(
False)
19 cout = cms.untracked.PSet(
20 enable = cms.untracked.bool(
True)
22 debugModules = cms.untracked.vstring(
'*')
25 process.source = cms.Source(
"EmptyIOVSource",
26 firstValue = cms.uint64(1),
27 lastValue = cms.uint64(1),
28 timetype = cms.string(
'runnumber'),
29 interval = cms.uint64(1)
32 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
36 record = cms.string(
'EcalPFRecHitThresholdsRcd'),
37 tag = cms.string(
'EcalPFRecHitThresholds_2018_mc')
42 process.dbCopy = cms.EDAnalyzer(
"EcalDBCopy",
43 timetype = cms.string(
'runnumber'),
46 record = cms.string(
'EcalPFRecHitThresholdsRcd'),
47 container = cms.string(
'EcalPFRecHitThresholds')
52 process.prod = cms.EDAnalyzer(
"EcalTrivialObjectAnalyzer")
54 process.p = cms.Path(process.prod*process.dbCopy)