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 
0003 def customise(process):
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 
0015         #process.load('SimTransport.PPSProtonTransport.HectorTransport_cfi')
0016         process.load('SimTransport.PPSProtonTransport.TotemTransport_cfi')
0017         process.LHCTransport.VtxMeanX  = VertexX
0018         process.LHCTransport.VtxMeanY  = VertexY
0019         process.LHCTransport.VtxMeanZ = VertexZ
0020 
0021         ###################################
0022         process.load('FastSimulation.CTPPSSimHitProducer.CTPPSSimHitProducer_cfi')
0023         process.load('FastSimulation.CTPPSRecHitProducer.CTPPSRecHitProducer_cfi')
0024         process.load('FastSimulation.CTPPSFastTrackingProducer.CTPPSFastTrackingProducer_cfi')
0025         ###################################
0026         process.mix.mixObjects.mixSH.crossingFrames.append('CTPPSHits')
0027         process.mix.mixObjects.mixSH.input.append(cms.InputTag("CTPPSSimHits","CTPPSHits"))
0028         process.mix.mixObjects.mixSH.subdets.append('CTPPSHits')
0029 
0030 
0031         # PPS simHit sequence
0032         process.simulation_step.replace(process.psim,process.psim+process.CTPPSSimHits)
0033         # SimTransport on path
0034         process.transport_step = cms.Path(process.generator+process.LHCTransport)
0035 
0036         #process.schedule.insert(2,process.transport_step)
0037 
0038         process.load("IOMC.RandomEngine.IOMC_cff")
0039         process.RandomNumberGeneratorService.LHCTransport.engineName   = cms.untracked.string('TRandom3')
0040 
0041         # output
0042         outputModule = None
0043         outdict = process.outputModules_()
0044         if outdict.has_key("AODSIMoutput"):
0045             process.AODSIMoutput.outputCommands.extend(cms.untracked.vstring('keep *_CTPPSSimHits_*_*','keep *_CTPPSFastRecHits_*_*','keep *_CTPPSFastTracks_*_*'))
0046             process.reconstruction_step.replace(process.reconstruction,process.reconstruction*process.CTPPSFastRecHits*process.CTPPSFastTracks)
0047         elif outdict.has_key("FASTPUoutput"):
0048             process.FASTPUoutput.outputCommands.extend(cms.untracked.vstring('keep *_CTPPSSimHits_*_*'))
0049 
0050         return(process)
0051