Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:14:21

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run3_cff import Run3
0004 
0005 process = cms.Process("HcalParametersTest",Run3)
0006 
0007 process.load('Geometry.HcalCommonData.hcalParameters_cff')
0008 process.load('Geometry.HcalCommonData.hcalSimulationParameters_cff')
0009 process.load('FWCore.MessageService.MessageLogger_cfi')
0010 
0011 process.source = cms.Source("EmptySource")
0012 process.maxEvents = cms.untracked.PSet(
0013     input = cms.untracked.int32(1)
0014     )
0015 
0016 process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
0017                                             confGeomXMLFiles = cms.FileInPath('Geometry/CMSCommonData/data/dd4hep/cmsExtendedGeometry2021.xml'),
0018                                             appendToDataLabel = cms.string('')
0019 )
0020 
0021 process.DDCompactViewESProducer = cms.ESProducer("DDCompactViewESProducer",
0022                                                 appendToDataLabel = cms.string('')
0023 )
0024 
0025 process.hpa = cms.EDAnalyzer("HcalParametersAnalyzer")
0026 process.hcalParameters.fromDD4hep = cms.bool(True)
0027 process.hcalSimulationParameters.fromDD4hep = cms.bool(True)
0028 
0029 process.Timing = cms.Service("Timing")
0030 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck")
0031 
0032 process.p1 = cms.Path(process.hpa)