Skip to content
Snippets Groups Projects
Commit 9a83c474 authored by Edward Moyse's avatar Edward Moyse Committed by Atlas Nightlybuild
Browse files

Merge branch 'FixPadFloatError' into '21.3'

Increase tolerance on NSW pad geometry to reduce floating point differences

See merge request atlas/athena!16706

(cherry picked from commit 442685b0 [formerly e482f8cf7acb5f4ef90e43b0dd105074b628f35b])

93647c8d Increase tolerance on NSW pad geometry to reduce floating point errors

Former-commit-id: 8168720d
parent a9ef95a1
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ bool MuonPadDesign::withinSensitiveArea(const Amg::Vector2D& pos) const
double bot_H2 = minSensitiveY();
double max_x = maxAbsSensitiveX(pos.y());
bool y_in_range = (pos.y() <= top_H1 and pos.y() >= bot_H2);
bool x_in_range = fabs(pos.x()) <= max_x;
bool x_in_range = fabs(pos.x()) <= max_x+0.01;
return y_in_range and x_in_range;
}
//----------------------------------------------------------
......
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