Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-09 23:31:56

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("EcalSimParametersTest")
0004 
0005 process.load('Geometry.EcalCommonData.ecalSimulationParameters_cff')
0006 process.load('FWCore.MessageService.MessageLogger_cfi')
0007 
0008 process.MessageLogger.cerr.FwkReport.reportEvery = 5
0009 if hasattr(process,'MessageLogger'):
0010     process.MessageLogger.EcalGeom=dict()
0011     process.MessageLogger.EcalSim=dict()
0012     process.MessageLogger.Geometry=dict()
0013 
0014 process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
0015                                             confGeomXMLFiles = cms.FileInPath('Geometry/EcalCommonData/data/dd4hep/cms-ecal-geometry.xml'),
0016                                             appendToDataLabel = cms.string('')
0017                                             )
0018 
0019 process.DDCompactViewESProducer = cms.ESProducer("DDCompactViewESProducer",
0020                                                 appendToDataLabel = cms.string('')
0021 )
0022 
0023 process.source = cms.Source("EmptySource")
0024 process.maxEvents = cms.untracked.PSet(
0025     input = cms.untracked.int32(1)
0026     )
0027 
0028 process.ecalSimulationParametersEB.fromDD4hep = cms.bool(True)
0029 process.ecalSimulationParametersEE.fromDD4hep = cms.bool(True)
0030 process.ecalSimulationParametersES.fromDD4hep = cms.bool(True)
0031 
0032 process.load('Geometry.EcalCommonData.ecalSimulationParametersAnalyzer_cff')
0033 
0034 process.Timing = cms.Service("Timing")
0035 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck")
0036 
0037 process.p1 = cms.Path(process.ecalSimulationParametersAnalyzerEB+process.ecalSimulationParametersAnalyzerEE+process.ecalSimulationParametersAnalyzerES)