Skip to content

Commit a28ef94

Browse files
committed
GPU TPC: Do not shift track in Z after the last fit
1 parent e439925 commit a28ef94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GPU/GPUTracking/Merger/GPUTPCGMTrackParam.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ GPUd() bool GPUTPCGMTrackParam::Fit(GPUTPCGMMerger* GPUrestrict() merger, int32_
407407
break; // bad chi2 for the whole track, stop the fit
408408
}
409409
}
410-
if (((nWays - iWay) & 1) && (clusters[0].sector < 18) == (clusters[maxN - 1].sector < 18)) {
410+
if (((nWays - iWay) & 1) && (iWay != nWays - 1) && (clusters[0].sector < 18) == (clusters[maxN - 1].sector < 18)) {
411411
ShiftZ2(clusters, clustersXYZ, merger, maxN);
412412
}
413413
}

0 commit comments

Comments
 (0)