diff --git a/PWGLF/Tasks/Strangeness/phik0sanalysis.cxx b/PWGLF/Tasks/Strangeness/phik0sanalysis.cxx index a68206f85e3..02c5a6970e1 100644 --- a/PWGLF/Tasks/Strangeness/phik0sanalysis.cxx +++ b/PWGLF/Tasks/Strangeness/phik0sanalysis.cxx @@ -1066,7 +1066,7 @@ struct phik0shortanalysis { std::array isCountedMCPhi{false, false, false}; - for (const auto& mcParticle : mcParticles) { + for (const auto& mcParticle : mcParticlesThisColl) { if (mcParticle.pdgCode() != 333) continue; auto kDaughters = mcParticle.daughters_as(); @@ -1150,7 +1150,7 @@ struct phik0shortanalysis { std::array isCountedMCPhi{false, false, false}; - for (const auto& mcParticle : mcParticles) { + for (const auto& mcParticle : mcParticlesThisColl) { if (mcParticle.pdgCode() != 333) continue; auto kDaughters = mcParticle.daughters_as();