From a14603d4d174863ef7ccb59be560362fc4dff94d Mon Sep 17 00:00:00 2001 From: Felix Schlepper Date: Sat, 7 Dec 2024 12:39:14 +0100 Subject: [PATCH] STR: Silence predicted chi2 calculation --- .../TrackParametrizationWithError.h | 12 ++++++++++++ .../StrangenessTracking/src/StrangenessTracker.cxx | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/DataFormats/Reconstruction/include/ReconstructionDataFormats/TrackParametrizationWithError.h b/DataFormats/Reconstruction/include/ReconstructionDataFormats/TrackParametrizationWithError.h index dd155e7f55569..cc783298e14cd 100644 --- a/DataFormats/Reconstruction/include/ReconstructionDataFormats/TrackParametrizationWithError.h +++ b/DataFormats/Reconstruction/include/ReconstructionDataFormats/TrackParametrizationWithError.h @@ -100,6 +100,8 @@ class TrackParametrizationWithError : public TrackParametrization template GPUd() value_t getPredictedChi2(const BaseCluster& p) const; + template + GPUd() value_t getPredictedChi2Quiet(const BaseCluster& p) const; GPUd() void buildCombinedCovMatrix(const TrackParametrizationWithError& rhs, MatrixDSym5& cov) const; GPUd() value_t getPredictedChi2(const TrackParametrizationWithError& rhs, MatrixDSym5& covToSet) const; @@ -315,6 +317,16 @@ GPUdi() auto TrackParametrizationWithError::getPredictedChi2(const Base return getPredictedChi2(pyz, cov); } +//__________________________________________________________________________ +template +template +GPUdi() auto TrackParametrizationWithError::getPredictedChi2Quiet(const BaseCluster& p) const -> value_t +{ + const dim2_t pyz = {value_T(p.getY()), value_T(p.getZ())}; + const dim3_t cov = {value_T(p.getSigmaY2()), value_T(p.getSigmaYZ()), value_T(p.getSigmaZ2())}; + return getPredictedChi2Quiet(pyz, cov); +} + //______________________________________________ template GPUdi() auto TrackParametrizationWithError::getPredictedChi2(const dim2_t& p, const dim3_t& cov) const -> value_t diff --git a/Detectors/Vertexing/StrangenessTracking/src/StrangenessTracker.cxx b/Detectors/Vertexing/StrangenessTracking/src/StrangenessTracker.cxx index d5d4951b1c707..720ef4c9d5d87 100644 --- a/Detectors/Vertexing/StrangenessTracking/src/StrangenessTracker.cxx +++ b/Detectors/Vertexing/StrangenessTracking/src/StrangenessTracker.cxx @@ -507,7 +507,7 @@ bool StrangenessTracker::updateTrack(const ITSCluster& clus, o2::track::TrackPar return false; } } - auto chi2 = std::abs(track.getPredictedChi2(clus)); // abs to be understood + auto chi2 = std::abs(track.getPredictedChi2Quiet(clus)); // abs to be understood LOG(debug) << "Chi2: " << chi2; if (chi2 > mStrParams->mMaxChi2 || chi2 < 0) { return false;