Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Detectors/ITSMFT/common/reconstruction/src/Clusterer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,10 @@ void Clusterer::ClustererThread::finishChipSingleHitFast(uint32_t hit, ChipPixel

if (labelsClusPtr) { // MC labels were requested
int nlab = 0;
fetchMCLabels(curChipData->getStartID() + hit, labelsDigPtr, nlab);
// Squashing can remove earlier digits on the chip, so the surviving
// pixel's source index need not be contiguous with the chip's start.
const auto digitID = parent->mSquashingDepth ? curChipData->getOrderedPixId(hit) : curChipData->getStartID() + hit;
fetchMCLabels(digitID, labelsDigPtr, nlab);
auto cnt = compClusPtr->size();
for (int i = 0; i < nlab; i++) {
labelsClusPtr->addElement(cnt, labelsBuff[i]);
Expand Down
Loading