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 cerr = cms.untracked.PSet(
19 enable = cms.untracked.bool(
False)
21 cout = cms.untracked.PSet(
22 enable = cms.untracked.bool(
True)
24 debugModules = cms.untracked.vstring(
'*')
27 process.source = cms.Source(
"EmptyIOVSource",
28 firstValue = cms.uint64(1),
29 lastValue = cms.uint64(1),
30 timetype = cms.string(
'runnumber'),
31 interval = cms.uint64(1)
34 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
38 record = cms.string(
'EcalPFRecHitThresholdsRcd'),
39 tag = cms.string(
'EcalPFRecHitThresholds_2018_def_mc')
44 process.dbCopy = cms.EDAnalyzer(
"EcalDBCopy",
45 timetype = cms.string(
'runnumber'),
48 record = cms.string(
'EcalPFRecHitThresholdsRcd'),
49 container = cms.string(
'EcalPFRecHitThresholds')
54 process.prod = cms.EDAnalyzer(
"EcalTrivialObjectAnalyzer")
56 process.p = cms.Path(process.prod*process.dbCopy)