1 import FWCore.ParameterSet.Config
as cms
4 if hasattr(process.VtxSmeared,
"X0"):
5 VertexX = process.VtxSmeared.X0
6 VertexY = process.VtxSmeared.Y0
7 VertexZ = process.VtxSmeared.Z0
9 if hasattr(process.VtxSmeared,
"MeanX"):
10 VertexX = process.VtxSmeared.MeanX
11 VertexY = process.VtxSmeared.MeanY
12 VertexZ = process.VtxSmeared.MeanZ
14 process.load(
"SimG4Core.Application.g4SimHits_cfi")
15 process.g4SimHits.Generator.HepMCProductLabel =
'LHCTransport' 16 process.g4SimHits.Generator.MinEtaCut = -13.0
17 process.g4SimHits.Generator.MaxEtaCut = 13.0
19 process.g4SimHits.SteppingAction.MaxTrackTime = cms.double(2000.0)
20 process.g4SimHits.StackingAction.MaxTrackTime = cms.double(2000.0)
22 process.load(
'SimTransport.PPSProtonTransport.TotemTransport_cfi')
25 process.LHCTransport.VtxMeanX = VertexX
26 process.LHCTransport.VtxMeanY = VertexY
27 process.LHCTransport.VtxMeanZ = VertexZ
29 process.load(
"IOMC.RandomEngine.IOMC_cff")
30 process.RandomNumberGeneratorService.LHCTransport.engineName = cms.untracked.string(
'TRandom3')
32 process.pgen = cms.Sequence(cms.SequencePlaceholder(
"randomEngineStateProducer")*process.pgen*process.LHCTransport)