CMS 3D CMS Logo

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

Functions

def customise
 

Function Documentation

def SimTrackProducerForFastSim_cff.customise (   process)

Definition at line 3 of file SimTrackProducerForFastSim_cff.py.

References gpuVertexFinder.return.

3 
4 def customise(process):
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 
16  #process.load('SimTransport.PPSProtonTransport.HectorTransport_cfi')
17  process.load('SimTransport.PPSProtonTransport.TotemTransport_cfi')
18  process.LHCTransport.VtxMeanX = VertexX
19  process.LHCTransport.VtxMeanY = VertexY
20  process.LHCTransport.VtxMeanZ = VertexZ
21 
22  ###################################
23  process.load('FastSimulation.CTPPSSimHitProducer.CTPPSSimHitProducer_cfi')
24  process.load('FastSimulation.CTPPSRecHitProducer.CTPPSRecHitProducer_cfi')
25  process.load('FastSimulation.CTPPSFastTrackingProducer.CTPPSFastTrackingProducer_cfi')
26  ###################################
27  process.mix.mixObjects.mixSH.crossingFrames.append('CTPPSHits')
28  process.mix.mixObjects.mixSH.input.append(cms.InputTag("CTPPSSimHits","CTPPSHits"))
29  process.mix.mixObjects.mixSH.subdets.append('CTPPSHits')
30 
31 
32  # PPS simHit sequence
33  process.simulation_step.replace(process.psim,process.psim+process.CTPPSSimHits)
34  # SimTransport on path
35  process.transport_step = cms.Path(process.generator+process.LHCTransport)
36 
37  #process.schedule.insert(2,process.transport_step)
38 
39  process.load("IOMC.RandomEngine.IOMC_cff")
40  process.RandomNumberGeneratorService.LHCTransport.engineName = cms.untracked.string('TRandom3')
41 
42  # output
43  outputModule = None
44  outdict = process.outputModules_()
45  if outdict.has_key("AODSIMoutput"):
46  process.AODSIMoutput.outputCommands.extend(cms.untracked.vstring('keep *_CTPPSSimHits_*_*','keep *_CTPPSFastRecHits_*_*','keep *_CTPPSFastTracks_*_*'))
47  process.reconstruction_step.replace(process.reconstruction,process.reconstruction*process.CTPPSFastRecHits*process.CTPPSFastTracks)
48  elif outdict.has_key("FASTPUoutput"):
49  process.FASTPUoutput.outputCommands.extend(cms.untracked.vstring('keep *_CTPPSSimHits_*_*'))
50 
51  return(process)
52