Skip to content

Commit

Permalink
Backport cms-sw#32431
Browse files Browse the repository at this point in the history
  • Loading branch information
mseidel42 committed May 12, 2021
1 parent d9ed083 commit a017f9d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions PhysicsTools/NanoAOD/python/nanogen_cff.py
Expand Up @@ -111,9 +111,8 @@ def customizeNanoGEN(process):

# Prune gen particles with tight conditions applied in usual NanoAOD
def pruneGenParticlesNano(process):
process.finalGenParticles = finalGenParticles.clone()
process.genParticleTable.src = "prunedGenParticles"
process.patJetPartons.particles = "prunedGenParticles"
process.finalGenParticles.src = process.genParticleTable.src.getModuleLabel()
process.genParticleTable.src = "finalGenParticles"
process.nanogenSequence.insert(0, process.finalGenParticles)
return process

Expand All @@ -124,9 +123,9 @@ def pruneGenParticlesMini(process):
"Use a different customization.")
from PhysicsTools.PatAlgos.slimming.prunedGenParticles_cfi import prunedGenParticles
process.prunedGenParticles = prunedGenParticles.clone()
process.prunedGenParticles.src = cms.InputTag("genParticles")
process.prunedGenParticles.src = "genParticles"
process.genParticleTable.src = "prunedGenParticles"
process.patJetPartons.particles = "prunedGenParticles"

process.nanogenSequence.insert(0, process.prunedGenParticles)
return process

Expand Down

0 comments on commit a017f9d

Please sign in to comment.