Skip to content
Snippets Groups Projects
Commit 9c045cb5 authored by Christopher Rob Jones's avatar Christopher Rob Jones Committed by Christopher Rob Jones
Browse files

RichTrackSegment: Remove angleToDirection asserts

parent 153c26c7
No related branches found
No related tags found
2 merge requests!4666RichTrackSegment: General Cleanup,!4647Synchronize master branch with 2024-patches
......@@ -363,7 +363,6 @@ namespace LHCb {
constexpr TYPE pi = TYPE( M_PI );
constexpr TYPE twopi = TYPE( 2.0 * M_PI );
phi += pi;
assert( phi >= TYPE( 0 ) && phi <= twopi );
} else if constexpr ( LHCb::SIMD::is_SIMD_v<TYPE> ) {
// SIMD version
// create vector in track reference frame
......@@ -374,7 +373,6 @@ namespace LHCb {
phi = my_atan2<PHI_PRECISION>( r.y(), r.x() );
// correct phi to range 0 - 2PI
phi += TYPE( M_PI );
assert( all_of( phi >= TYPE( 0 ) && phi <= TYPE( 2.0 * M_PI ) ) );
} else {
// If get here unknown types so force compilation failure
TYPE::WillFail();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment