From 28b0cae24ccdbcc191c0f47eda277084951a4931 Mon Sep 17 00:00:00 2001
From: John Chapman <John.Chapman@cern.ch>
Date: Mon, 14 Apr 2025 09:34:28 +0200
Subject: [PATCH] TruthDerivationToolsConfig: Use TruthParticles.isStable
 rather than TruthParticles.status==1

---
 .../python/TruthDerivationToolsConfig.py                        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkMCTruth/python/TruthDerivationToolsConfig.py b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkMCTruth/python/TruthDerivationToolsConfig.py
index 095bebc82ac..b5ba04d5d47 100644
--- a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkMCTruth/python/TruthDerivationToolsConfig.py
+++ b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkMCTruth/python/TruthDerivationToolsConfig.py
@@ -110,7 +110,7 @@ def DFCommonTruthForwardProtonToolCfg(flags):
                                    name                    = "DFCommonTruthForwardProtonTool",
                                    NewCollectionName       = "TruthForwardProtons",
                                    KeepNavigationInfo      = False,
-                                   ParticleSelectionString = "(TruthParticles.status==1) && (abs(TruthParticles.pdgId)==2212) && (TruthParticles.e>0.8*"+str(beam_energy)+")", # FIXME should not check TruthParticles.status==1 directly
+                                   ParticleSelectionString = "(TruthParticles.isStable) && (abs(TruthParticles.pdgId)==2212) && (TruthParticles.e>0.8*"+str(beam_energy)+")", # TODO Check whether isGenStable was intended here.
                                    Do_Compress             = True)
 
 #==============================================================================
-- 
GitLab