CMS 3D CMS Logo

SimTrackProducerForFullSim_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 def customise(process):
3 
4  if hasattr(process.VtxSmeared,"X0"):
5  VertexX = process.VtxSmeared.X0
6  VertexY = process.VtxSmeared.Y0
7  VertexZ = process.VtxSmeared.Z0
8 
9  if hasattr(process.VtxSmeared,"MeanX"):
10  VertexX = process.VtxSmeared.MeanX
11  VertexY = process.VtxSmeared.MeanY
12  VertexZ = process.VtxSmeared.MeanZ
13 
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
18 
19  process.g4SimHits.SteppingAction.MaxTrackTime = cms.double(2000.0)
20  process.g4SimHits.StackingAction.MaxTrackTime = cms.double(2000.0)
21 
22  process.load('SimTransport.PPSProtonTransport.TotemTransport_cfi')
23  #process.load('SimTransport.PPSProtonTransport.HectorTransport_cfi')
24 
25  process.LHCTransport.VtxMeanX = VertexX
26  process.LHCTransport.VtxMeanY = VertexY
27  process.LHCTransport.VtxMeanZ = VertexZ
28 
29  process.load("IOMC.RandomEngine.IOMC_cff")
30  process.RandomNumberGeneratorService.LHCTransport.engineName = cms.untracked.string('TRandom3')
31 
32  process.pgen = cms.Sequence(cms.SequencePlaceholder("randomEngineStateProducer")*process.pgen*process.LHCTransport)
33 
34  return(process)
return((rh ^ lh) &mask)