Skip to content

Commit a1aa338

Browse files
committed
ITS: clear tracklets after cell finding
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 1ab4f13 commit a1aa338

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Detectors/ITSMFT/ITS/tracking/src/TrackerTraits.cxx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,12 @@ void TrackerTraits<NLayers>::computeLayerCells(const int iteration)
400400
});
401401
}
402402
});
403+
404+
// Clear tracklets and their labels
405+
for (int iLayer = 0; iLayer < mTrkParams[iteration].TrackletsPerRoad(); ++iLayer) {
406+
deepVectorClear(mTimeFrame->getTracklets()[iLayer]);
407+
deepVectorClear(mTimeFrame->getTrackletsLabel(iLayer));
408+
}
403409
}
404410

405411
template <int NLayers>
@@ -511,6 +517,11 @@ void TrackerTraits<NLayers>::findCellsNeighbours(const int iteration)
511517
}
512518
}
513519
});
520+
521+
// clear cells LUT
522+
for (int iLayer{0}; iLayer < mTrkParams[iteration].NeighboursPerRoad(); ++iLayer) {
523+
deepVectorClear(mTimeFrame->getCellsLookupTable()[iLayer]);
524+
}
514525
}
515526

516527
template <int NLayers>

0 commit comments

Comments
 (0)