Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Detectors/GlobalTracking/src/MatchGlobalFwd.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
// or submit itself to any jurisdiction.

#include "GlobalTracking/MatchGlobalFwd.h"
#include "MathUtils/Utils.h"
#include <queue>

using namespace o2::globaltracking;
Expand Down Expand Up @@ -926,6 +927,9 @@ MatchGlobalFwd::MatchGlobalFwd()
// Update Parameters
r_k_kminus1 = m_k - H_k * GlobalMuonTrackParameters; // Residuals of prediction

// Restrict the phi residual to the [-pi, pi] range
o2::math_utils::bringToPMPiGend(r_k_kminus1[2]);

auto matchChi2Track = ROOT::Math::Similarity(r_k_kminus1, invResCov);

return matchChi2Track;
Expand Down Expand Up @@ -963,6 +967,9 @@ MatchGlobalFwd::MatchGlobalFwd()
// Residuals of prediction
r_k_kminus1 = m_k - H_k * GlobalMuonTrackParameters;

// Restrict the phi residual to the [-pi, pi] range
o2::math_utils::bringToPMPiGend(r_k_kminus1[2]);

auto matchChi2Track = ROOT::Math::Similarity(r_k_kminus1, invResCov);

return matchChi2Track; };
Expand Down
Loading