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.producedEcalSimComponentShape = cms.untracked.bool(True)
0006 process.EcalTrivialConditionRetriever.getSimComponentShapeFromFile = cms.untracked.bool(True)
0007
0008
0009
0010 process.EcalTrivialConditionRetriever.sim_component_shape_TI = cms.untracked.double(1)
0011 process.EcalTrivialConditionRetriever.sim_component_shape_EB_thresh = cms.double(0.00013)
0012 fileNames = [f"EB_SimComponentShape_PhaseI_depth{i}.txt" for i in range(0,23)]
0013
0014 process.EcalTrivialConditionRetriever.EBSimComponentShapeFiles = cms.untracked.vstring(fileNames)
0015
0016
0017 process.load("CondCore.CondDB.CondDB_cfi")
0018
0019
0020 process.CondDB.connect = 'sqlite_file:EBSimComponentShape_PhaseI.db'
0021
0022
0023 process.MessageLogger = cms.Service("MessageLogger",
0024 cerr = cms.untracked.PSet(
0025 enable = cms.untracked.bool(False)
0026 ),
0027 cout = cms.untracked.PSet(
0028 enable = cms.untracked.bool(True)
0029 ),
0030 debugModules = cms.untracked.vstring('*')
0031 )
0032
0033 process.source = cms.Source("EmptyIOVSource",
0034 firstValue = cms.uint64(1),
0035 lastValue = cms.uint64(1),
0036 timetype = cms.string('runnumber'),
0037 interval = cms.uint64(1)
0038 )
0039
0040 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0041 process.CondDB,
0042 toPut = cms.VPSet(
0043 cms.PSet(
0044 record = cms.string('EcalSimComponentShapeRcd'),
0045 tag = cms.string('EcalSimComponentShape_PhaseI')
0046
0047 )
0048 )
0049 )
0050
0051 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0052 timetype = cms.string('runnumber'),
0053 toCopy = cms.VPSet(
0054 cms.PSet(
0055 record = cms.string('EcalSimComponentShapeRcd'),
0056 container = cms.string('EcalSimComponentShape')
0057 )
0058 )
0059 )
0060
0061 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
0062
0063 process.p = cms.Path(process.prod*process.dbCopy)