diff --git a/PhysicsAnalysis/NtupleDumper/src/NtupleDumperAlg.cxx b/PhysicsAnalysis/NtupleDumper/src/NtupleDumperAlg.cxx index e240494871b225a33d5bbcaeab991472e04bd819..0df49fce419154eb46a24f24cc46920349874d41 100644 --- a/PhysicsAnalysis/NtupleDumper/src/NtupleDumperAlg.cxx +++ b/PhysicsAnalysis/NtupleDumper/src/NtupleDumperAlg.cxx @@ -824,7 +824,7 @@ StatusCode NtupleDumperAlg::execute(const EventContext &ctx) const m_truth_st_z[station].push_back(positions[station].z()); } - auto momenta = m_fiducialParticleTool->getTruthMomenta(particle->barcode()); + auto momenta = m_fiducialParticleTool->getTruthMomenta(truthParticle->barcode()); for (int station = 0; station < 4; ++station) { m_truth_st_px[station].push_back(momenta[station].x()); m_truth_st_py[station].push_back(momenta[station].y());