1 import FWCore.ParameterSet.Config
as cms
7 process.load(
'FWCore.MessageService.MessageLogger_cfi')
8 process.load(
'Configuration.StandardSequences.Services_cff')
9 process.load(
'SimGeneral.HepPDTESSource.pdt_cfi')
10 process.load(
'Configuration.EventContent.EventContent_cff')
11 process.load(
"Geometry.EcalCommonData.ecalSimulationParameters_cff")
12 process.load(
'Geometry.HcalTestBeamData.hcalDDDSimConstants_cff')
13 process.load(
'IOMC.EventVertexGenerators.VtxSmearedFlat_cfi')
14 process.load(
'GeneratorInterface.Core.generatorSmeared_cfi')
15 process.load(
'SimG4Core.Application.g4SimHits_cfi')
16 process.load(
'IOMC.RandomEngine.IOMC_cff')
18 process.RandomNumberGeneratorService.generator.initialSeed = 456789
19 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
20 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
22 process.source = cms.Source(
"EmptySource",
23 firstRun = cms.untracked.uint32(1),
24 firstEvent = cms.untracked.uint32(1)
27 process.load(
'SimG4CMS.HcalTestBeam.TBDirectionParameters_cfi')
28 process.load(
'SimG4CMS.HcalTestBeam.TBVtxSmeared_cfi')
29 process.load(
'SimG4CMS.HcalTestBeam.TB06Analysis_cfi')
31 process.generator = cms.EDProducer(
"FlatRandomEGunProducer",
32 PGunParameters = cms.PSet(
33 process.common_beam_direction_parameters
35 Verbosity = cms.untracked.int32(0),
36 AddAntiParticle = cms.bool(
False)
39 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared*process.g4SimHits*process.testbeam)
41 process.common_maximum_time.MaxTrackTime = cms.double(1000.0)
42 process.common_maximum_time.MaxTimeNames = cms.vstring()
43 process.common_maximum_time.MaxTrackTimes = cms.vstring()
44 process.common_maximum_time.DeadRegions = cms.vstring()
46 process.g4SimHits.NonBeamEvent =
True 47 process.g4SimHits.UseMagneticField =
False 49 process.g4SimHits.Physics.type =
'SimG4Core/Physics/FTFP_BERT_EMM' 50 process.g4SimHits.Physics.Region =
'HcalRegion' 51 process.g4SimHits.Physics.MaxTrackTime = cms.double(1000.0)
53 process.g4SimHits.Generator.ApplyEtaCuts = cms.bool(
False)
55 process.g4SimHits.StackingAction.MaxTrackTime = cms.double(1000.0)
56 process.g4SimHits.StackingAction.MaxTimeNames = cms.vstring()
57 process.g4SimHits.StackingAction.MaxTrackTimes = cms.vdouble()
58 process.g4SimHits.StackingAction.DeadRegions = cms.vstring()
60 process.g4SimHits.SteppingAction.MaxTrackTime = cms.double(1000.0)
61 process.g4SimHits.SteppingAction.MaxTimeNames = cms.vstring()
62 process.g4SimHits.SteppingAction.MaxTrackTimes = cms.vdouble()
63 process.g4SimHits.SteppingAction.DeadRegions = cms.vstring()
65 process.g4SimHits.CaloSD.EminHits = cms.vdouble(0.0,0.0,0.0,0.0)
66 process.g4SimHits.CaloSD.TmaxHits = cms.vdouble(1000.0,1000.0,1000.0,1000.0)
67 process.g4SimHits.CaloTrkProcessing.TestBeam =
True 69 process.g4SimHits.HCalSD.UseShowerLibrary =
False 70 process.g4SimHits.HCalSD.UseHF =
False 71 process.g4SimHits.HCalSD.ForTBHCAL =
True 72 process.g4SimHits.HCalSD.ForTBH2 =
False
def testbeam2006(process)
set to 1 (or greater) for printouts