Skip to content

Commit f049107

Browse files
authored
Adapt road to work with its3 with 4 layers (#11315)
1 parent 2152195 commit f049107

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • Detectors/ITSMFT/ITS/tracking/include/ITStracking

Detectors/ITSMFT/ITS/tracking/include/ITStracking/Road.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,15 @@ class Road final
4444

4545
GPUhd() void resetRoad()
4646
{
47+
#ifndef ENABLE_ITS3_4L
4748
for (int i = 0; i < maxRoadSize; i++) {
4849
mCellIds[i] = constants::its::UnusedIndex;
4950
}
51+
#else
52+
for (int i = 0; i < maxRoadSize + 1; i++) {
53+
mCellIds[i] = constants::its::UnusedIndex;
54+
}
55+
#endif
5056
mRoadSize = 0;
5157
}
5258

0 commit comments

Comments
 (0)