Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-28 01:33:55

0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.Eras.Era_Phase2C11_dd4hep_cff import Phase2C11_dd4hep
0003 
0004 process = cms.Process("HGCalParametersTest",Phase2C11_dd4hep)
0005 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0006 process.load("Configuration.Geometry.GeometryDD4hepExtended2026D77Reco_cff")
0007 process.load('FWCore.MessageService.MessageLogger_cfi')
0008 
0009 if hasattr(process,'MessageLogger'):
0010     process.MessageLogger.HGCalGeom=dict()
0011 
0012 
0013 process.load("IOMC.RandomEngine.IOMC_cff")
0014 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0015 
0016 process.source = cms.Source("EmptySource")
0017 
0018 process.maxEvents = cms.untracked.PSet(
0019     input = cms.untracked.int32(1)
0020 )
0021 
0022 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0023     PGunParameters = cms.PSet(
0024         PartID = cms.vint32(14),
0025         MinEta = cms.double(-3.5),
0026         MaxEta = cms.double(3.5),
0027         MinPhi = cms.double(-3.14159265359),
0028         MaxPhi = cms.double(3.14159265359),
0029         MinE   = cms.double(9.99),
0030         MaxE   = cms.double(10.01)
0031     ),
0032     AddAntiParticle = cms.bool(False),
0033     Verbosity       = cms.untracked.int32(0),
0034     firstRun        = cms.untracked.uint32(1)
0035 )
0036 
0037 process.load("Geometry.HGCalCommonData.hgcParameterTesterEE_cfi")
0038 #process.hgcParameterTesterEE.Mode = 0
0039 
0040 process.hgcParameterTesterHESil = process.hgcParameterTesterEE.clone(
0041     Name = cms.string("HGCalHESiliconSensitive")
0042 )
0043 
0044 process.hgcParameterTesterHESci = process.hgcParameterTesterEE.clone(
0045     Name = cms.string("HGCalHEScintillatorSensitive"),
0046     Mode = cms.int32(2)
0047 )
0048  
0049 process.p1 = cms.Path(process.generator*process.hgcParameterTesterEE*process.hgcParameterTesterHESil*process.hgcParameterTesterHESci)
0050 #process.p1 = cms.Path(process.generator*process.hgcParameterTesterEE*process.hgcParameterTesterHESil)