CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
SimTrackProducerForFullSim_cff Namespace Reference

Functions

def customise
 

Function Documentation

def SimTrackProducerForFullSim_cff.customise (   process)

Definition at line 2 of file SimTrackProducerForFullSim_cff.py.

References gpuVertexFinder.return.

2 
3 def customise(process):
4 
5  if hasattr(process.VtxSmeared,"X0"):
6  VertexX = process.VtxSmeared.X0
7  VertexY = process.VtxSmeared.Y0
8  VertexZ = process.VtxSmeared.Z0
9 
10  if hasattr(process.VtxSmeared,"MeanX"):
11  VertexX = process.VtxSmeared.MeanX
12  VertexY = process.VtxSmeared.MeanY
13  VertexZ = process.VtxSmeared.MeanZ
14 
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
19 
20  process.g4SimHits.SteppingAction.MaxTrackTime = cms.double(2000.0)
21  process.g4SimHits.StackingAction.MaxTrackTime = cms.double(2000.0)
22 
23  process.load('SimTransport.PPSProtonTransport.TotemTransport_cfi')
24  #process.load('SimTransport.PPSProtonTransport.HectorTransport_cfi')
25 
26  process.LHCTransport.VtxMeanX = VertexX
27  process.LHCTransport.VtxMeanY = VertexY
28  process.LHCTransport.VtxMeanZ = VertexZ
29 
30  process.load("IOMC.RandomEngine.IOMC_cff")
31  process.RandomNumberGeneratorService.LHCTransport.engineName = cms.untracked.string('TRandom3')
32 
33  process.pgen = cms.Sequence(cms.SequencePlaceholder("randomEngineStateProducer")*process.pgen*process.LHCTransport)
34 
35  return(process)