Skip to content

Commit 4f7d71b

Browse files
committed
GPU: fix bug when filling subthreshold clusters
1 parent 6cfdeae commit 4f7d71b

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
@@ -223,7 +223,7 @@ GPUd() bool GPUTPCGMTrackParam::Fit(GPUTPCGMMerger* GPUrestrict() merger, int32_
223223
bool dodEdx = param.par.dodEdx && param.dodEdxDownscaled && param.rec.tpc.adddEdxSubThresholdClusters && iWay == nWays - 1 && CAMath::Abs(cluster.row - lastRow) == 2 && cluster.leg == clusters[maxN - 1].leg;
224224
dodEdx = AttachClustersPropagate(merger, cluster.slice, lastRow, cluster.row, iTrk, cluster.leg == clusters[maxN - 1].leg, prop, inFlyDirection, GPUCA_MAX_SIN_PHI, dodEdx);
225225
if (dodEdx) {
226-
dEdx.fillSubThreshold(lastRow - 1, param);
226+
dEdx.fillSubThreshold(lastRow - wayDirection, param);
227227
}
228228
}
229229

0 commit comments

Comments
 (0)