CMS 3D CMS Logo

Functions
SimTrackProducerForFastSim_cff Namespace Reference

Functions

def customise (process)
 

Function Documentation

◆ customise()

def SimTrackProducerForFastSim_cff.customise (   process)

Definition at line 3 of file SimTrackProducerForFastSim_cff.py.

References mathSSE.return().

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