Skip to content

Commit a14603d

Browse files
f3schshahor02
authored andcommitted
STR: Silence predicted chi2 calculation
1 parent a6e67d3 commit a14603d

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

DataFormats/Reconstruction/include/ReconstructionDataFormats/TrackParametrizationWithError.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ class TrackParametrizationWithError : public TrackParametrization<value_T>
100100

101101
template <typename T>
102102
GPUd() value_t getPredictedChi2(const BaseCluster<T>& p) const;
103+
template <typename T>
104+
GPUd() value_t getPredictedChi2Quiet(const BaseCluster<T>& p) const;
103105

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

320+
//__________________________________________________________________________
321+
template <typename value_T>
322+
template <typename T>
323+
GPUdi() auto TrackParametrizationWithError<value_T>::getPredictedChi2Quiet(const BaseCluster<T>& p) const -> value_t
324+
{
325+
const dim2_t pyz = {value_T(p.getY()), value_T(p.getZ())};
326+
const dim3_t cov = {value_T(p.getSigmaY2()), value_T(p.getSigmaYZ()), value_T(p.getSigmaZ2())};
327+
return getPredictedChi2Quiet(pyz, cov);
328+
}
329+
318330
//______________________________________________
319331
template <typename value_T>
320332
GPUdi() auto TrackParametrizationWithError<value_T>::getPredictedChi2(const dim2_t& p, const dim3_t& cov) const -> value_t

Detectors/Vertexing/StrangenessTracking/src/StrangenessTracker.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ bool StrangenessTracker::updateTrack(const ITSCluster& clus, o2::track::TrackPar
507507
return false;
508508
}
509509
}
510-
auto chi2 = std::abs(track.getPredictedChi2(clus)); // abs to be understood
510+
auto chi2 = std::abs(track.getPredictedChi2Quiet(clus)); // abs to be understood
511511
LOG(debug) << "Chi2: " << chi2;
512512
if (chi2 > mStrParams->mMaxChi2 || chi2 < 0) {
513513
return false;

0 commit comments

Comments
 (0)