Skip to content

Commit fb35524

Browse files
committed
better var name
1 parent 5d67a9e commit fb35524

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -551,13 +551,12 @@ void TrackerTraits<nLayers>::processNeighbours(int iLayer, int iLevel, const bou
551551
});
552552

553553
std::exclusive_scan(perCellCount.begin(), perCellCount.end(), perCellCount.begin(), 0);
554-
perCellCount.shrink_to_fit();
555-
int total{perCellCount.back()};
556-
if (total == 0) {
554+
auto totalNeighbours{perCellCount.back()};
555+
if (totalNeighbours == 0) {
557556
return;
558557
}
559-
updatedCellSeeds.resize(total);
560-
updatedCellsIds.resize(total);
558+
updatedCellSeeds.resize(totalNeighbours);
559+
updatedCellsIds.resize(totalNeighbours);
561560

562561
tbb::parallel_for(
563562
tbb::blocked_range<int>(0, (int)currentCellSeed.size()),

0 commit comments

Comments
 (0)