Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:51

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def setupPPSDirectSim(process):
0004     process.load('SimPPS.Configuration.directSimPPS_cff')
0005     process.load('RecoPPS.Configuration.recoCTPPS_cff')
0006     if not hasattr(process, 'RandomNumberGeneratorService'):
0007         process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService")
0008     if not hasattr(process.RandomNumberGeneratorService, 'beamDivergenceVtxGenerator'):
0009         process.RandomNumberGeneratorService.beamDivergenceVtxGenerator = cms.PSet(initialSeed = cms.untracked.uint32(3849))
0010     if not hasattr(process.RandomNumberGeneratorService, 'ppsDirectProtonSimulation'):
0011         process.RandomNumberGeneratorService.ppsDirectProtonSimulation = cms.PSet(initialSeed = cms.untracked.uint32(4981))
0012     process.ppsDirectSim = cms.Path(process.directSimPPS * process.recoDirectSimPPS)
0013     process.schedule.append(process.ppsDirectSim)
0014 
0015     from SimPPS.DirectSimProducer.matching_cff import matchDirectSimOutputs
0016     matchDirectSimOutputs(process)
0017     return process
0018 
0019 def setupPPSDirectSimAOD(process):
0020     setupPPSDirectSim(process)
0021     from SimPPS.DirectSimProducer.matching_cff import matchDirectSimOutputsAOD
0022     matchDirectSimOutputsAOD(process)
0023     return process
0024 
0025 def setupPPSDirectSimMiniAOD(process):
0026     setupPPSDirectSim(process)
0027     from SimPPS.DirectSimProducer.matching_cff import matchDirectSimOutputsMiniAOD
0028     matchDirectSimOutputsMiniAOD(process)
0029     return process