Skip to content

Commit f2a59e7

Browse files
committed
Fix getTRDLayer and TRD chi2 assignment
1 parent 5e1b56b commit f2a59e7

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Detectors/TPC/calibration/SpacePoints/include/SpacePoints/TrackInterpolation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ struct UnbinnedResid {
100100
bool isITS() const { return row >= 180; }
101101
int getDetID() const { return isTPC() ? 1 : (isITS() ? 0 : (isTRD() ? 2 : (isTOF() ? 3 : -1))); }
102102
int getITSLayer() const { return row - 180; }
103-
int getTRDLayer() const { return row - 170; }
103+
int getTRDLayer() const { return row - 160; }
104104
float getAlpha() const;
105105
float getX() const;
106106

Detectors/TPC/calibration/SpacePoints/src/TrackInterpolation.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,7 @@ void TrackInterpolation::extrapolateTrack(int iSeed)
11191119
if (gidTableFull[GTrackID::TRD].isIndexSet()) {
11201120
const auto& trkTRD = mRecoCont->getITSTPCTRDTrack<o2::trd::TrackTRD>(gidTableFull[GTrackID::ITSTPCTRD]);
11211121
trackData.nTrkltsTRD = trkTRD.getNtracklets();
1122+
trackData.chi2TRD = trkTRD.getChi2();
11221123
for (int iLayer = 0; iLayer < o2::trd::constants::NLAYER; iLayer++) {
11231124
std::array<float, 2> trkltTRDYZ{};
11241125
int res = processTRDLayer(trkTRD, iLayer, trkWork, &trkltTRDYZ, nullptr, &trackData, &trkl64, &trklCalib);

0 commit comments

Comments
 (0)