diff --git a/Detectors/TPC/calibration/SpacePoints/include/SpacePoints/TrackInterpolation.h b/Detectors/TPC/calibration/SpacePoints/include/SpacePoints/TrackInterpolation.h index 81e55262f9181..99e85cf19101a 100644 --- a/Detectors/TPC/calibration/SpacePoints/include/SpacePoints/TrackInterpolation.h +++ b/Detectors/TPC/calibration/SpacePoints/include/SpacePoints/TrackInterpolation.h @@ -100,7 +100,7 @@ struct UnbinnedResid { bool isITS() const { return row >= 180; } int getDetID() const { return isTPC() ? 1 : (isITS() ? 0 : (isTRD() ? 2 : (isTOF() ? 3 : -1))); } int getITSLayer() const { return row - 180; } - int getTRDLayer() const { return row - 170; } + int getTRDLayer() const { return row - 160; } float getAlpha() const; float getX() const; diff --git a/Detectors/TPC/calibration/SpacePoints/src/TrackInterpolation.cxx b/Detectors/TPC/calibration/SpacePoints/src/TrackInterpolation.cxx index c125810ce57f6..571bc00a48763 100644 --- a/Detectors/TPC/calibration/SpacePoints/src/TrackInterpolation.cxx +++ b/Detectors/TPC/calibration/SpacePoints/src/TrackInterpolation.cxx @@ -1119,6 +1119,7 @@ void TrackInterpolation::extrapolateTrack(int iSeed) if (gidTableFull[GTrackID::TRD].isIndexSet()) { const auto& trkTRD = mRecoCont->getITSTPCTRDTrack(gidTableFull[GTrackID::ITSTPCTRD]); trackData.nTrkltsTRD = trkTRD.getNtracklets(); + trackData.chi2TRD = trkTRD.getChi2(); for (int iLayer = 0; iLayer < o2::trd::constants::NLAYER; iLayer++) { std::array trkltTRDYZ{}; int res = processTRDLayer(trkTRD, iLayer, trkWork, &trkltTRDYZ, nullptr, &trackData, &trkl64, &trklCalib);