Skip to content

Commit fa89568

Browse files
TPC SCD: fix getDXI off-by-one for row 127 (#16030)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 798e8d5 commit fa89568

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Detectors/TPC/calibration/SpacePoints/include/SpacePoints/TrackResiduals.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,8 @@ inline float TrackResiduals::getDXI(int ix) const
552552
if (ix < param::NRowsPerROC[0]) {
553553
// we are in the IROC
554554
return 1.f / param::RowDX[0];
555-
} else if (ix > param::NRowsAccumulated[param::NROCTypes - 2]) {
556-
// we are in the last OROC
555+
} else if (ix >= param::NRowsAccumulated[param::NROCTypes - 2]) {
556+
// we are in the last OROC (rows 127 - 151)
557557
return 1.f / param::RowDX[param::NROCTypes - 1];
558558
} else if (ix < param::NRowsAccumulated[1]) {
559559
// OROC1

0 commit comments

Comments
 (0)