diff --git a/src/algorithms/pid/ParticlesWithPID.cc b/src/algorithms/pid/ParticlesWithPID.cc index 56b7ef45cc..53a21320e0 100644 --- a/src/algorithms/pid/ParticlesWithPID.cc +++ b/src/algorithms/pid/ParticlesWithPID.cc @@ -310,7 +310,7 @@ namespace eicrecon { } in_part.addToParticleIDs(out_pid); } - in_part.setParticleIDUsed(in_part.getParticleIDs().front()); // highest likelihood is the first + in_part.setParticleIDUsed(in_part.getParticleIDs().at(0)); // highest likelihood is the first in_part.setGoodnessOfPID(1); // FIXME: not used yet, aside from 0=noPID vs 1=hasPID // trace logging