Skip to content
Snippets Groups Projects
Commit 892ec8a3 authored by John Chapman's avatar John Chapman
Browse files

Migrate MCTruthClassifier to use TruthUtils PDG ID helper functions

parent 823fbdd2
No related branches found
No related tags found
No related merge requests found
Pipeline #11041576 passed
/* /*
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
*/ */
#ifndef GENERATIONBASE #ifndef GENERATIONBASE
...@@ -230,7 +230,7 @@ MCTruthClassifier::getGenPart(const xAOD::TrackParticle* trk, MCTruthPartClassif ...@@ -230,7 +230,7 @@ MCTruthClassifier::getGenPart(const xAOD::TrackParticle* trk, MCTruthPartClassif
ATH_MSG_DEBUG("track matched to the truth with status " << theGenParticle->status()); ATH_MSG_DEBUG("track matched to the truth with status " << theGenParticle->status());
} }
if (MC::isDecayed(theGenParticle) && (std::abs(theGenParticle->pdgId()) == 11 || std::abs(theGenParticle->pdgId()) == 13)) { if (MC::isDecayed(theGenParticle) && (MC::isElectron(theGenParticle) || MC::isMuon(theGenParticle))) {
const xAOD::TruthVertex* EndVrtx = theGenParticle->decayVtx(); const xAOD::TruthVertex* EndVrtx = theGenParticle->decayVtx();
const xAOD::TruthParticle* theGenPartTmp(nullptr); const xAOD::TruthParticle* theGenPartTmp(nullptr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment