From 1d538db828161d688ff7ee5a63031654f99e566f Mon Sep 17 00:00:00 2001 From: Alexandre Laurier <alexandre.laurier@cern.ch> Date: Wed, 12 Dec 2018 16:53:38 +0100 Subject: [PATCH] Increase tolerance on NSW pad geometry to reduce floating point errors Former-commit-id: 93647c8d5b68c734dcd5dfca89e63347a07a2b35 --- .../MuonDetDescr/MuonReadoutGeometry/src/MuonPadDesign.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MuonSpectrometer/MuonDetDescr/MuonReadoutGeometry/src/MuonPadDesign.cxx b/MuonSpectrometer/MuonDetDescr/MuonReadoutGeometry/src/MuonPadDesign.cxx index 8fd1645649b..2a53e71e036 100644 --- a/MuonSpectrometer/MuonDetDescr/MuonReadoutGeometry/src/MuonPadDesign.cxx +++ b/MuonSpectrometer/MuonDetDescr/MuonReadoutGeometry/src/MuonPadDesign.cxx @@ -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; } //---------------------------------------------------------- -- GitLab