Skip to content

Commit

Permalink
Fixed bug on mcParticles loop
Browse files Browse the repository at this point in the history
  • Loading branch information
scannito committed Dec 22, 2024
1 parent c95149b commit a3b3718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PWGLF/Tasks/Strangeness/phik0sanalysis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ struct phik0shortanalysis {

std::array<bool, 3> isCountedMCPhi{false, false, false};

for (const auto& mcParticle : mcParticles) {
for (const auto& mcParticle : mcParticlesThisColl) {
if (mcParticle.pdgCode() != 333)
continue;
auto kDaughters = mcParticle.daughters_as<aod::McParticles>();
Expand Down Expand Up @@ -1150,7 +1150,7 @@ struct phik0shortanalysis {

std::array<bool, 3> isCountedMCPhi{false, false, false};

for (const auto& mcParticle : mcParticles) {
for (const auto& mcParticle : mcParticlesThisColl) {
if (mcParticle.pdgCode() != 333)
continue;
auto kDaughters = mcParticle.daughters_as<aod::McParticles>();
Expand Down

0 comments on commit a3b3718

Please sign in to comment.