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
7 changes: 2 additions & 5 deletions Detectors/ITSMFT/common/reconstruction/src/Clusterer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -389,13 +389,12 @@ void Clusterer::ClustererThread::updateChip(const ChipPixelData* curChipData, ui
}
} else {
// row above should be always checked
int nnb = 0, lowestIndex = curr[row - 1], lowestNb = 0, *nbrCol[4], nbrRow[4];
int nnb = 0, lowestIndex = curr[row - 1], *nbrCol[4], nbrRow[4];
if (lowestIndex >= 0) {
nbrCol[nnb] = curr;
nbrRow[nnb++] = row - 1;
} else {
lowestIndex = 0x7ffff;
lowestNb = -1;
}
#ifdef _ALLOW_DIAGONAL_ALPIDE_CLUSTERS_
for (int i : {-1, 0, 1}) {
Expand All @@ -405,7 +404,6 @@ void Clusterer::ClustererThread::updateChip(const ChipPixelData* curChipData, ui
nbrRow[nnb] = row + i;
if (v < lowestIndex) {
lowestIndex = v;
lowestNb = nnb;
}
nnb++;
}
Expand All @@ -415,8 +413,7 @@ void Clusterer::ClustererThread::updateChip(const ChipPixelData* curChipData, ui
nbrCol[nnb] = prev;
nbrRow[nnb] = row;
if (prev[row] < lowestIndex) {
lowestIndex = v;
lowestNb = nnb;
lowestIndex = prev[row];
}
nnb++;
}
Expand Down
Loading