Skip to content

Commit

Permalink
STR: Silence predicted chi2 calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
f3sch authored and shahor02 committed Dec 16, 2024
1 parent a6e67d3 commit a14603d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ class TrackParametrizationWithError : public TrackParametrization<value_T>

template <typename T>
GPUd() value_t getPredictedChi2(const BaseCluster<T>& p) const;
template <typename T>
GPUd() value_t getPredictedChi2Quiet(const BaseCluster<T>& p) const;

GPUd() void buildCombinedCovMatrix(const TrackParametrizationWithError& rhs, MatrixDSym5& cov) const;
GPUd() value_t getPredictedChi2(const TrackParametrizationWithError& rhs, MatrixDSym5& covToSet) const;
Expand Down Expand Up @@ -315,6 +317,16 @@ GPUdi() auto TrackParametrizationWithError<value_T>::getPredictedChi2(const Base
return getPredictedChi2(pyz, cov);
}

//__________________________________________________________________________
template <typename value_T>
template <typename T>
GPUdi() auto TrackParametrizationWithError<value_T>::getPredictedChi2Quiet(const BaseCluster<T>& 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 <typename value_T>
GPUdi() auto TrackParametrizationWithError<value_T>::getPredictedChi2(const dim2_t& p, const dim3_t& cov) const -> value_t
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a14603d

Please sign in to comment.