Skip to content
Snippets Groups Projects

MuTagMatchingTool - Add explicit geometry dependence & resolve FPE

Merged Johannes Junggeburth requested to merge (removed):ATLASRECTS-6139 into master
2 files
+ 2
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -24,7 +24,6 @@
#include "TrkParameters/TrackParameters.h"
#include "TrkSurfaces/Surface.h"
#include "TrkTrack/Track.h"
#include "FourMomUtils/xAODP4Helpers.h"
MuTagMatchingTool::MuTagMatchingTool(const std::string& t, const std::string& n, const IInterface* p)
@@ -358,11 +357,9 @@ MuTagMatchingTool::phiMatch(const Trk::TrackParameters* atSurface, const Muon::M
} else
ATH_MSG_DEBUG(" track not extrapolated to a disc ");
}
if (std::abs(cosphi) > 1.) return false;
double errPhi = std::hypot(PHI_CUT, sigma_phi);
// if the difference between exTrk and Segment phi position falls within the errPhi, accept as rough match
// if( std::acos(cosphi) < errPhi ) return true;
if (std::acos(std::abs(cosphi)) < errPhi)
return true; // BRes: TEMPORARY - segment direction not sure, so I'm making this match symmetric wrt Pi/2
// else ATH_MSG_DEBUG( std::setw(30) << "roughPhi failed: d_phi = " << std::setw(10) << std::acos(cosphi)
Loading