We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 309069f commit 58cfea1Copy full SHA for 58cfea1
1 file changed
PWGLF/TableProducer/QC/nucleiQC.cxx
@@ -620,7 +620,7 @@ struct nucleiQC {
620
if (!mFillSpecies[iSpecies])
621
continue;
622
623
- if (reconstructedMcParticles.count(particle.globalIndex()) > 0)
+ if (reconstructedMcParticles.count(mcIndex) > 0)
624
625
626
if ((particle.y() - cfgRapidityCenterMass) < cfgRapidityMin || (particle.y() - cfgRapidityCenterMass) > cfgRapidityMax)
@@ -642,7 +642,7 @@ struct nucleiQC {
642
fillNucleusGeneratedVariables(particle, candidate);
643
644
writeCandidate(candidate);
645
- mFilledMcParticleIds.emplace_back(mcIndex);
+ mFilledMcParticleIds.emplace_back(particle.globalIndex());
646
dispatchFillHistograms</*isGenerated*/ true>(iSpecies, candidate);
647
}
648
0 commit comments