Skip to content

Commit c6f3702

Browse files
mfagginMattia Faggin
andauthored
[Common] RecoDecay: Templatize MC particle. (#11854)
Co-authored-by: Mattia Faggin <mfaggin@cern.ch>
1 parent 323853b commit c6f3702

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Common/Core/RecoDecay.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ struct RecoDecay {
732732
if (!arrDaughters[iProng].has_mcParticle()) {
733733
return -1;
734734
}
735-
auto particleI = arrDaughters[iProng].mcParticle(); // ith daughter particle
735+
auto particleI = arrDaughters[iProng].template mcParticle_as<T>(); // ith daughter particle
736736
if (std::abs(particleI.getGenStatusCode()) == StatusCodeAfterFlavourOscillation) { // oscillation decay product spotted
737737
coefFlavourOscillation = -1; // select the sign of the mother after oscillation (and not before)
738738
break;
@@ -744,7 +744,7 @@ struct RecoDecay {
744744
if (!arrDaughters[iProng].has_mcParticle()) {
745745
return -1;
746746
}
747-
auto particleI = arrDaughters[iProng].mcParticle(); // ith daughter particle
747+
auto particleI = arrDaughters[iProng].template mcParticle_as<T>(); // ith daughter particle
748748
if constexpr (acceptTrackDecay) {
749749
// Replace the MC particle associated with the prong by its mother for π → μ and K → π.
750750
auto motherI = particleI.template mothers_first_as<T>();

0 commit comments

Comments
 (0)