File indexing completed on 2024-04-06 12:15:07
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("HGCalParametersTest")
0004 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0005 process.load("Geometry.HGCalCommonData.hgcalParametersInitialization_cfi")
0006 process.load('FWCore.MessageService.MessageLogger_cfi')
0007
0008 if hasattr(process,'MessageLogger'):
0009 process.MessageLogger.HGCalGeom=dict()
0010
0011 process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
0012 confGeomXMLFiles = cms.FileInPath('Geometry/HGCalCommonData/data/dd4hep/cms-test-ddhgcalTB181V1-algorithm.xml'),
0013 appendToDataLabel = cms.string('')
0014 )
0015
0016 process.DDCompactViewESProducer = cms.ESProducer("DDCompactViewESProducer",
0017 appendToDataLabel = cms.string('')
0018 )
0019
0020 process.load("IOMC.RandomEngine.IOMC_cff")
0021 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0022
0023 process.source = cms.Source("EmptySource")
0024
0025 process.maxEvents = cms.untracked.PSet(
0026 input = cms.untracked.int32(1)
0027 )
0028
0029 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0030 PGunParameters = cms.PSet(
0031 PartID = cms.vint32(14),
0032 MinEta = cms.double(-3.5),
0033 MaxEta = cms.double(3.5),
0034 MinPhi = cms.double(-3.14159265359),
0035 MaxPhi = cms.double(3.14159265359),
0036 MinE = cms.double(9.99),
0037 MaxE = cms.double(10.01)
0038 ),
0039 AddAntiParticle = cms.bool(False),
0040 Verbosity = cms.untracked.int32(0),
0041 firstRun = cms.untracked.uint32(1)
0042 )
0043
0044 process.hgcalEEParametersInitialize.fromDD4hep = cms.bool(True)
0045 process.hgcalHESiParametersInitialize.fromDD4hep = cms.bool(True)
0046 process.hgcalHEScParametersInitialize.fromDD4hep = cms.bool(True)
0047
0048 process.load("Geometry.HGCalCommonData.hgcParameterTesterEE_cfi")
0049 process.hgcParameterTesterEE.Mode = 0
0050
0051 process.p1 = cms.Path(process.generator*process.hgcParameterTesterEE)