From faa2f127025a3831ba5dc66c91580b26d2cb260f Mon Sep 17 00:00:00 2001 From: Andrii Verbytskyi <andrii.verbytskyi@cern.ch> Date: Thu, 6 Feb 2025 09:53:46 +0000 Subject: [PATCH] Update MCTruthClassifierGen.cxx to try to avoid explicit usage of status --- PhysicsAnalysis/MCTruthClassifier/Root/MCTruthClassifierGen.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PhysicsAnalysis/MCTruthClassifier/Root/MCTruthClassifierGen.cxx b/PhysicsAnalysis/MCTruthClassifier/Root/MCTruthClassifierGen.cxx index c3bd4f1d6347..f7c5ab5c8a79 100644 --- a/PhysicsAnalysis/MCTruthClassifier/Root/MCTruthClassifierGen.cxx +++ b/PhysicsAnalysis/MCTruthClassifier/Root/MCTruthClassifierGen.cxx @@ -1058,7 +1058,7 @@ ParticleOrigin MCTruthClassifier::defOrigOfPhoton(const xAOD::TruthParticleConta if (MC::isMuon(motherPDG) && NumOfMu == 0) return Mu; if (MC::isTau(motherPDG) && NumOfTau == 0) return TauLep; - if (numOfParents == 1 && mother && mother->status() == 3) return (foundISR)? ISRPhot:UndrPhot; + if (numOfParents == 1 && mother && !MC::isPhysical(mother)) return (foundISR)? ISRPhot:UndrPhot; //-- to find initial and final state raiation and underline photons //-- SUSY -- GitLab