From 2d24c61178f2cb5ec06b436ad5d6f4918c9bd68f Mon Sep 17 00:00:00 2001 From: Josh Bendavid Date: Tue, 24 Mar 2015 16:03:51 +0100 Subject: [PATCH] make prunedGenParticle selection more robust using genstatusflags --- .../PatAlgos/python/slimming/prunedGenParticles_cfi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PhysicsTools/PatAlgos/python/slimming/prunedGenParticles_cfi.py b/PhysicsTools/PatAlgos/python/slimming/prunedGenParticles_cfi.py index 75ac9e1680a93..26b9e32abbe02 100644 --- a/PhysicsTools/PatAlgos/python/slimming/prunedGenParticles_cfi.py +++ b/PhysicsTools/PatAlgos/python/slimming/prunedGenParticles_cfi.py @@ -7,8 +7,8 @@ "++keep abs(pdgId) == 11 || abs(pdgId) == 13 || abs(pdgId) == 15", # keep leptons, with history "keep abs(pdgId) == 12 || abs(pdgId) == 14 || abs(pdgId) == 16", # keep neutrinos "drop status == 2", # drop the shower part of the history - "+keep pdgId == 22 && status == 1 && pt > 10", # keep gamma above 10 GeV and its first parent - "+keep pdgId == 11 && status == 1 && pt > 3", # keep first parent of electrons above 10 GeV + "+keep pdgId == 22 && status == 1 && (pt > 10 || isPromptFinalState())", # keep gamma above 10 GeV (or all prompt) and its first parent + "+keep abs(pdgId) == 11 && status == 1 && (pt > 3 || isPromptFinalState())", # keep first parent of electrons above 3 GeV (or prompt) "keep++ abs(pdgId) == 15", # but keep keep taus with decays "drop status > 30 && status < 70 ", #remove pythia8 garbage "drop pdgId == 21 && pt < 5", #remove pythia8 garbage @@ -30,6 +30,6 @@ # keep protons "keep pdgId = 2212", "keep status == 3 || ( 21 <= status <= 29) || ( 11 <= status <= 19)", #keep event summary (status=3 for pythia6, 21 <= status <= 29 for pythia8) - + "keep isHardProcess() || fromHardProcessFinalState() || fromHardProcessDecayed() || fromHardProcessBeforeFSR() || (statusFlags().fromHardProcess() && statusFlags().isLastCopy())", #keep event summary based on status flags ) )