File indexing completed on 2024-04-06 12:02:52
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("TEST")
0004 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
0005 process.EcalTrivialConditionRetriever.producedEcalPFRecHitThresholds = cms.untracked.bool(True)
0006 process.EcalTrivialConditionRetriever.EcalPFRecHitThresholdsEB = cms.untracked.double( 0.0)
0007 process.EcalTrivialConditionRetriever.EcalPFRecHitThresholdsEE = cms.untracked.double( 0.0)
0008
0009
0010 process.load("CondCore.CondDB.CondDB_cfi")
0011
0012
0013 process.CondDB.connect = 'sqlite_file:DB.db'
0014
0015 process.MessageLogger = cms.Service("MessageLogger",
0016 cerr = cms.untracked.PSet(
0017 enable = cms.untracked.bool(False)
0018 ),
0019 cout = cms.untracked.PSet(
0020 enable = cms.untracked.bool(True)
0021 ),
0022 debugModules = cms.untracked.vstring('*')
0023 )
0024
0025 process.source = cms.Source("EmptyIOVSource",
0026 firstValue = cms.uint64(1),
0027 lastValue = cms.uint64(1),
0028 timetype = cms.string('runnumber'),
0029 interval = cms.uint64(1)
0030 )
0031
0032 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0033 process.CondDB,
0034 toPut = cms.VPSet(
0035 cms.PSet(
0036 record = cms.string('EcalPFRecHitThresholdsRcd'),
0037 tag = cms.string('EcalPFRecHitThresholds_2018_mc')
0038 )
0039 )
0040 )
0041
0042 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0043 timetype = cms.string('runnumber'),
0044 toCopy = cms.VPSet(
0045 cms.PSet(
0046 record = cms.string('EcalPFRecHitThresholdsRcd'),
0047 container = cms.string('EcalPFRecHitThresholds')
0048 )
0049 )
0050 )
0051
0052 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
0053
0054 process.p = cms.Path(process.prod*process.dbCopy)