File indexing completed on 2024-04-06 12:32:19
0001 import FWCore.ParameterSet.Config as cms
0002
0003 from Configuration.Eras.Era_Run3_dd4hep_cff import Run3_dd4hep
0004 process = cms.Process('PROD',Run3_dd4hep)
0005
0006 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0007 process.load('Configuration.Geometry.GeometryDD4hepExtended2021Reco_cff')
0008 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0009 process.load("SimG4Core.Application.g4SimHits_cfi")
0010 process.load("GeneratorInterface.Core.generatorSmeared_cfi")
0011 from Configuration.StandardSequences.VtxSmeared import VtxSmeared
0012 process.load(VtxSmeared['NoSmear'])
0013
0014 process.load("IOMC.RandomEngine.IOMC_cff")
0015 process.RandomNumberGeneratorService.VtxSmeared.engineName = cms.untracked.string('HepJamesRandom')
0016 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0017 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0018 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0019
0020 process.load('FWCore.MessageService.MessageLogger_cfi')
0021 if hasattr(process,'MessageLogger'):
0022 process.MessageLogger.MaterialBudget=dict()
0023
0024
0025
0026 process.source = cms.Source("EmptySource",
0027 firstRun = cms.untracked.uint32(1),
0028 firstEvent = cms.untracked.uint32(1)
0029 )
0030
0031 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0032 PGunParameters = cms.PSet(
0033 PartID = cms.vint32(14),
0034 MinEta = cms.double(2.8),
0035 MaxEta = cms.double(3.0),
0036 MinPhi = cms.double(-3.14159265359),
0037 MaxPhi = cms.double(3.14159265359),
0038 MinE = cms.double(10.0),
0039 MaxE = cms.double(10.0)
0040 ),
0041 AddAntiParticle = cms.bool(False),
0042 Verbosity = cms.untracked.int32(0)
0043 )
0044
0045 process.maxEvents = cms.untracked.PSet(
0046 input = cms.untracked.int32(10)
0047 )
0048
0049 process.TFileService = cms.Service("TFileService",
0050 fileName = cms.string('matbdg_HCAL1.root')
0051 )
0052
0053 process.g4SimHits.UseMagneticField = False
0054 process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
0055 process.g4SimHits.StackingAction.TrackNeutrino = True
0056 process.g4SimHits.Physics.DummyEMPhysics = True
0057 process.g4SimHits.Physics.CutsPerRegion = False
0058 process.g4SimHits.Generator.ApplyEtaCuts = False
0059 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0060 MaterialBudgetHcal = cms.PSet(
0061 FillHisto = cms.untracked.bool(True),
0062 PrintSummary = cms.untracked.bool(True),
0063 DoHCAL = cms.untracked.bool(True),
0064 NBinPhi = cms.untracked.int32(180),
0065 NBinEta = cms.untracked.int32(260),
0066 MaxEta = cms.untracked.double(5.2),
0067 EtaLow = cms.untracked.double(-3.0),
0068 EtaHigh = cms.untracked.double(3.0),
0069 EtaMinP = cms.untracked.double(-5.5),
0070 EtaMaxP = cms.untracked.double(5.5),
0071 EtaLowMin = cms.untracked.double(0.783),
0072 EtaLowMax = cms.untracked.double(0.870),
0073 EtaMidMin = cms.untracked.double(2.650),
0074 EtaMidMax = cms.untracked.double(2.868),
0075 EtaHighMin = cms.untracked.double(2.868),
0076 EtaHighMax = cms.untracked.double(3.000),
0077 RMax = cms.untracked.double(5.0),
0078 ZMax = cms.untracked.double(14.0),
0079 Fromdd4hep = cms.untracked.bool(True)
0080 ),
0081 type = cms.string('MaterialBudgetHcal')
0082 ))
0083
0084
0085 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared*process.g4SimHits)