5 if hasattr(process.VtxSmeared,
"X0"):
6 VertexX = process.VtxSmeared.X0
7 VertexY = process.VtxSmeared.Y0
8 VertexZ = process.VtxSmeared.Z0
10 if hasattr(process.VtxSmeared,
"MeanX"):
11 VertexX = process.VtxSmeared.MeanX
12 VertexY = process.VtxSmeared.MeanY
13 VertexZ = process.VtxSmeared.MeanZ
15 process.load(
"SimG4Core.Application.g4SimHits_cfi")
16 process.g4SimHits.Generator.HepMCProductLabel =
'LHCTransport'
17 process.g4SimHits.Generator.MinEtaCut = -13.0
18 process.g4SimHits.Generator.MaxEtaCut = 13.0
20 process.g4SimHits.SteppingAction.MaxTrackTime = cms.double(2000.0)
21 process.g4SimHits.StackingAction.MaxTrackTime = cms.double(2000.0)
23 process.load(
'SimTransport.PPSProtonTransport.TotemTransport_cfi')
26 process.LHCTransport.VtxMeanX = VertexX
27 process.LHCTransport.VtxMeanY = VertexY
28 process.LHCTransport.VtxMeanZ = VertexZ
30 process.load(
"IOMC.RandomEngine.IOMC_cff")
31 process.RandomNumberGeneratorService.LHCTransport.engineName = cms.untracked.string(
'TRandom3')
33 process.pgen = cms.Sequence(cms.SequencePlaceholder(
"randomEngineStateProducer")*process.pgen*process.LHCTransport)