Skip to content

Commit

Permalink
revert and improve subtractBoundParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Oct 21, 2024
1 parent f55210a commit ce0ad9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Core/include/Acts/EventData/TrackParameterHelpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ inline BoundVector addBoundParameters(const BoundVector& lhs,
/// @return The difference of the bound parameters
inline BoundVector subtractBoundParameters(const BoundVector& lhs,
const BoundVector& rhs) {
return normalizeBoundParameters(lhs - rhs);
BoundVector result = lhs - rhs;
result[eBoundPhi] = detail::radian_sym(result[eBoundPhi]);
result[eBoundTheta] = detail::radian_sym(result[eBoundTheta]);
return result;
}

} // namespace Acts

0 comments on commit ce0ad9f

Please sign in to comment.