File indexing completed on 2024-04-06 12:30:05
0001 import FWCore.ParameterSet.Config as cms
0002
0003 from IOMC.EventVertexGenerators.VtxSmearedParameters_cfi import *
0004
0005 def testbeam2006(process):
0006
0007 process.load('FWCore.MessageService.MessageLogger_cfi')
0008 process.load('Configuration.StandardSequences.Services_cff')
0009 process.load('SimGeneral.HepPDTESSource.pdt_cfi')
0010 process.load('Configuration.EventContent.EventContent_cff')
0011 process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
0012 process.load('Geometry.HcalTestBeamData.hcalDDDSimConstants_cff')
0013 process.load('IOMC.EventVertexGenerators.VtxSmearedFlat_cfi')
0014 process.load('GeneratorInterface.Core.generatorSmeared_cfi')
0015 process.load('SimG4Core.Application.g4SimHits_cfi')
0016 process.load('IOMC.RandomEngine.IOMC_cff')
0017
0018 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0019 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0020 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0021
0022 process.source = cms.Source("EmptySource",
0023 firstRun = cms.untracked.uint32(1),
0024 firstEvent = cms.untracked.uint32(1)
0025 )
0026
0027 process.load('SimG4CMS.HcalTestBeam.TBDirectionParameters_cfi')
0028 process.load('SimG4CMS.HcalTestBeam.TBVtxSmeared_cfi')
0029 process.load('SimG4CMS.HcalTestBeam.TB06Analysis_cfi')
0030
0031 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0032 PGunParameters = cms.PSet(
0033 process.common_beam_direction_parameters
0034 ),
0035 Verbosity = cms.untracked.int32(0),
0036 AddAntiParticle = cms.bool(False)
0037 )
0038
0039 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared*process.g4SimHits*process.testbeam)
0040
0041 process.common_maximum_time.MaxTrackTime = cms.double(1000.0)
0042 process.common_maximum_time.MaxTimeNames = cms.vstring()
0043 process.common_maximum_time.MaxTrackTimes = cms.vdouble()
0044 process.common_maximum_time.DeadRegions = cms.vstring()
0045
0046 process.g4SimHits.NonBeamEvent = True
0047 process.g4SimHits.UseMagneticField = False
0048
0049 process.g4SimHits.Physics.type = 'SimG4Core/Physics/FTFP_BERT_EMM'
0050 process.g4SimHits.Physics.Region = 'HcalRegion'
0051 process.g4SimHits.Physics.MaxTrackTime = cms.double(1000.0)
0052
0053 process.g4SimHits.Generator.ApplyEtaCuts = cms.bool(False)
0054
0055 process.g4SimHits.StackingAction.MaxTrackTime = cms.double(1000.0)
0056 process.g4SimHits.StackingAction.MaxTimeNames = cms.vstring()
0057 process.g4SimHits.StackingAction.MaxTrackTimes = cms.vdouble()
0058 process.g4SimHits.StackingAction.DeadRegions = cms.vstring()
0059
0060 process.g4SimHits.SteppingAction.MaxTrackTime = cms.double(1000.0)
0061 process.g4SimHits.SteppingAction.MaxTimeNames = cms.vstring()
0062 process.g4SimHits.SteppingAction.MaxTrackTimes = cms.vdouble()
0063 process.g4SimHits.SteppingAction.DeadRegions = cms.vstring()
0064
0065 process.g4SimHits.CaloSD.EminHits = cms.vdouble(0.0,0.0,0.0,0.0)
0066 process.g4SimHits.CaloSD.TmaxHits = cms.vdouble(1000.0,1000.0,1000.0,1000.0)
0067 process.g4SimHits.CaloTrkProcessing.TestBeam = True
0068
0069 process.g4SimHits.HCalSD.UseShowerLibrary = False
0070 process.g4SimHits.HCalSD.UseHF = False
0071 process.g4SimHits.HCalSD.ForTBHCAL = True
0072 process.g4SimHits.HCalSD.ForTBH2 = False
0073
0074 return(process)