Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:27

0001 import FWCore.ParameterSet.Config as cms
0002 def customise(process):
0003 
0004   if hasattr(process.VtxSmeared,"X0"):
0005         VertexX = process.VtxSmeared.X0
0006         VertexY = process.VtxSmeared.Y0
0007         VertexZ = process.VtxSmeared.Z0
0008 
0009   if hasattr(process.VtxSmeared,"MeanX"):
0010       VertexX = process.VtxSmeared.MeanX
0011       VertexY = process.VtxSmeared.MeanY
0012       VertexZ = process.VtxSmeared.MeanZ
0013 
0014   process.load("SimG4Core.Application.g4SimHits_cfi")
0015   process.g4SimHits.Generator.HepMCProductLabel   = 'LHCTransport'
0016   process.g4SimHits.Generator.MinEtaCut        = -13.0
0017   process.g4SimHits.Generator.MaxEtaCut        = 13.0
0018 
0019   process.g4SimHits.SteppingAction.MaxTrackTime = cms.double(2000.0)
0020   process.g4SimHits.StackingAction.MaxTrackTime = cms.double(2000.0)
0021 
0022   process.load('SimTransport.PPSProtonTransport.TotemTransport_cfi')
0023   #process.load('SimTransport.PPSProtonTransport.HectorTransport_cfi')
0024 
0025   process.LHCTransport.VtxMeanX  = VertexX
0026   process.LHCTransport.VtxMeanY  = VertexY
0027   process.LHCTransport.VtxMeanZ  = VertexZ
0028 
0029   process.load("IOMC.RandomEngine.IOMC_cff")
0030   process.RandomNumberGeneratorService.LHCTransport.engineName   = cms.untracked.string('TRandom3')
0031 
0032   process.pgen = cms.Sequence(cms.SequencePlaceholder("randomEngineStateProducer")*process.pgen*process.LHCTransport)
0033 
0034   return(process)