Skip to content

Commit

Permalink
avoid setting energy from (unavailable) mass
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl authored Jul 27, 2024
1 parent abe0f6e commit 241a3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms/tracking/TracksToParticles.cc
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ namespace eicrecon {
}

rec_part.setType(static_cast<int16_t>(best_match >= 0 ? 0 : -1)); // @TODO: determine type codes
rec_part.setEnergy((float) std::hypot(edm4hep::utils::magnitude(mom), mass));
rec_part.setEnergy(edm4hep::utils::magnitude(mom));
rec_part.setMomentum(mom);
rec_part.setReferencePoint(referencePoint);
rec_part.setCharge(charge_rec);
Expand Down

0 comments on commit 241a3fb

Please sign in to comment.