Skip to content

Commit

Permalink
[PWGLF] Fixed bug on mcParticles loop in phik0sanalysis.cxx (#9106)
Browse files Browse the repository at this point in the history
  • Loading branch information
scannito authored Dec 23, 2024
1 parent 56c64b3 commit ca18cd8
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 ca18cd8

Please sign in to comment.