Skip to content
Snippets Groups Projects
Commit 442685b0 authored by Edward Moyse's avatar Edward Moyse
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

Former-commit-id: e482f8cf7acb5f4ef90e43b0dd105074b628f35b
parents 43e56b68 1d538db8
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 ...@@ -13,7 +13,7 @@ bool MuonPadDesign::withinSensitiveArea(const Amg::Vector2D& pos) const
double bot_H2 = minSensitiveY(); double bot_H2 = minSensitiveY();
double max_x = maxAbsSensitiveX(pos.y()); double max_x = maxAbsSensitiveX(pos.y());
bool y_in_range = (pos.y() <= top_H1 and pos.y() >= bot_H2); 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; 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