Skip to content

Commit

Permalink
fix: TrackStateType printout in wrong order (#2950)
Browse files Browse the repository at this point in the history
`operator<<(std::ostream& os, ConstTrackStateType t)` prints out the flag bits as a binary number, with bit 0 (`MeasurementFlag`) at the end. This is belied by the label `MPOHMS`, which should be `SMHOPM`.

This PR fixes the label. Another option would be to reverse the order of bit printout. Please comment if you think that would be better.
  • Loading branch information
timadye authored Feb 15, 2024
1 parent fc68c59 commit 026b481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/include/Acts/EventData/TrackStateType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ class ConstTrackStateType {
for (std::size_t i = 0; i < TrackStateFlag::NumTrackStateFlags; i++) {
trunc[i] = bs[i];
}
// MeasurementParameterOutlierHoleMaterialSharedhit
os << "MPOHMS=" << trunc;
// SharedhitMaterialHoleOutlierParameterMeasurement
os << "SMHOPM=" << trunc;
return os;
}

Expand Down

0 comments on commit 026b481

Please sign in to comment.