Skip to content

Commit 0570735

Browse files
committed
Avoid premature loop termination in ITS vertexer
1 parent ea49c66 commit 0570735

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Detectors/ITSMFT/ITS/tracking/GPU/cuda/VertexingKernels.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ GPUg() void lineClustererMultipleRof(
498498
tmpVertex[1] = tmpClus.getVertex()[1];
499499
tmpVertex[2] = tmpClus.getVertex()[2];
500500
if (tmpVertex[0] * tmpVertex[0] + tmpVertex[1] * tmpVertex[1] > 4.f) { // outside the beampipe, skip it
501-
break;
501+
continue;
502502
}
503503
clusteredLines[absLine1Index] = iLine1; // We set local index of first line to contribute, so we can retrieve the cluster later
504504
clusteredLines[absLine2Index] = iLine1;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ void VertexerTraits<nLayers>::computeVertices(const int iteration)
370370
std::array<float, 3> tmpVertex{mTimeFrame->getTrackletClusters(rofId).back().getVertex()};
371371
if (tmpVertex[0] * tmpVertex[0] + tmpVertex[1] * tmpVertex[1] > 4.f) {
372372
mTimeFrame->getTrackletClusters(rofId).pop_back();
373-
break;
373+
continue;
374374
}
375375
usedTracklets[line1] = true;
376376
usedTracklets[line2] = true;

0 commit comments

Comments
 (0)