Skip to content

Commit

Permalink
Backport #32431
Browse files Browse the repository at this point in the history
  • Loading branch information
mseidel42 committed May 5, 2021
1 parent 540efaa commit 4a4a4b9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions PhysicsTools/NanoAOD/python/nanogen_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,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 @@ -131,9 +130,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 4a4a4b9

Please sign in to comment.