File indexing completed on 2024-04-06 12:30:19
0001
0002
0003
0004
0005
0006
0007 import FWCore.ParameterSet.Config as cms
0008
0009 def customizeKeep (process):
0010 outputTypes = ["RAWSIM", "RECOSIM", "AODSIM", "MINIAODSIM"]
0011 for a in outputTypes:
0012 b = a + "output"
0013 if hasattr (process, b):
0014 getattr (process, b).outputCommands.append ("keep *_genParticlePlusGeant_*_*")
0015
0016 return process
0017
0018
0019 def customizeProduce (process):
0020 process.genParticlePlusGeant = cms.EDProducer("GenPlusSimParticleProducer",
0021 src = cms.InputTag("g4SimHits"),
0022 setStatus = cms.int32(8),
0023 filter = cms.vstring("pt > 10.0"),
0024 genParticles = cms.InputTag("genParticles")
0025 )
0026
0027 if hasattr (process, "simulation_step") and hasattr(process, "psim"):
0028 getattr(process, "simulation_step")._seq = getattr(process,"simulation_step")._seq * process.genParticlePlusGeant
0029
0030 return process
0031