From 6ce05fa27b45dfb326c77e17230ccfb6d7d94e7c Mon Sep 17 00:00:00 2001 From: Mattia Faggin Date: Tue, 1 Jul 2025 11:21:42 +0200 Subject: [PATCH] Templetize MC particle. --- Common/Core/RecoDecay.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/Core/RecoDecay.h b/Common/Core/RecoDecay.h index 7716a8d64a0..5b4464e112a 100644 --- a/Common/Core/RecoDecay.h +++ b/Common/Core/RecoDecay.h @@ -732,7 +732,7 @@ struct RecoDecay { if (!arrDaughters[iProng].has_mcParticle()) { return -1; } - auto particleI = arrDaughters[iProng].mcParticle(); // ith daughter particle + auto particleI = arrDaughters[iProng].template mcParticle_as(); // ith daughter particle if (std::abs(particleI.getGenStatusCode()) == StatusCodeAfterFlavourOscillation) { // oscillation decay product spotted coefFlavourOscillation = -1; // select the sign of the mother after oscillation (and not before) break; @@ -744,7 +744,7 @@ struct RecoDecay { if (!arrDaughters[iProng].has_mcParticle()) { return -1; } - auto particleI = arrDaughters[iProng].mcParticle(); // ith daughter particle + auto particleI = arrDaughters[iProng].template mcParticle_as(); // ith daughter particle if constexpr (acceptTrackDecay) { // Replace the MC particle associated with the prong by its mother for π → μ and K → π. auto motherI = particleI.template mothers_first_as();