From 83327c6519e7aadb1a905cec661b9f22cef9292a Mon Sep 17 00:00:00 2001 From: shahoian Date: Tue, 7 Oct 2025 23:21:17 +0200 Subject: [PATCH] Account for rejected clusters in unbinned residuals counters --- .../TPC/calibration/SpacePoints/src/TrackInterpolation.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Detectors/TPC/calibration/SpacePoints/src/TrackInterpolation.cxx b/Detectors/TPC/calibration/SpacePoints/src/TrackInterpolation.cxx index d89b3c28f1a0d..f9861bb26ff93 100644 --- a/Detectors/TPC/calibration/SpacePoints/src/TrackInterpolation.cxx +++ b/Detectors/TPC/calibration/SpacePoints/src/TrackInterpolation.cxx @@ -640,7 +640,6 @@ void TrackInterpolation::interpolateTrack(int iSeed) // skip masked cluster residual continue; } - ++nClValidated; const float tgPhi = clusterResiduals[iCl].snp / std::sqrt((1.f - clusterResiduals[iCl].snp) * (1.f + clusterResiduals[iCl].snp)); const auto dy = clusterResiduals[iCl].dy; const auto dz = clusterResiduals[iCl].dz; @@ -649,6 +648,7 @@ void TrackInterpolation::interpolateTrack(int iSeed) const auto sec = clusterResiduals[iCl].sec; if ((std::abs(dy) < param::MaxResid) && (std::abs(dz) < param::MaxResid) && (std::abs(y) < param::MaxY) && (std::abs(z) < param::MaxZ) && (std::abs(tgPhi) < param::MaxTgSlp)) { mClRes.emplace_back(dy, dz, tgPhi, y, z, iRow, sec); + ++nClValidated; } else { ++mRejectedResiduals; } @@ -875,7 +875,7 @@ void TrackInterpolation::extrapolateTrack(int iSeed) TrackParams params; // for refitted track parameters and flagging rejected clusters if (clusterResiduals.size() > constants::MAXGLOBALPADROW) { - LOGP(warn, "Extrapolated ITS-TPC track and found more reesiduals than possible ({})", clusterResiduals.size()); + LOGP(warn, "Extrapolated ITS-TPC track and found more residuals than possible ({})", clusterResiduals.size()); return; } @@ -899,7 +899,6 @@ void TrackInterpolation::extrapolateTrack(int iSeed) if (iRow < param::NPadRows && params.flagRej[iCl]) { // skip masked cluster residual continue; } - ++nClValidated; const float tgPhi = clusterResiduals[iCl].snp / std::sqrt((1.f - clusterResiduals[iCl].snp) * (1.f + clusterResiduals[iCl].snp)); const auto dy = clusterResiduals[iCl].dy; const auto dz = clusterResiduals[iCl].dz; @@ -907,6 +906,7 @@ void TrackInterpolation::extrapolateTrack(int iSeed) const auto z = clusterResiduals[iCl].z; if ((std::abs(dy) < param::MaxResid) && (std::abs(dz) < param::MaxResid) && (std::abs(y) < param::MaxY) && (std::abs(z) < param::MaxZ) && (std::abs(tgPhi) < param::MaxTgSlp)) { mClRes.emplace_back(dy, dz, tgPhi, y, z, iRow, clusterResiduals[iCl].sec); + ++nClValidated; } else { ++mRejectedResiduals; }