Skip to content

Commit 7980c62

Browse files
committed
GPU TPC: For constraining track time0, use all clusters, not only those that were not reject in current refit round
1 parent 1a868fb commit 7980c62

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

GPU/GPUTracking/Merger/GPUTPCGMTrackParam.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ GPUd() bool GPUTPCGMTrackParam::Fit(GPUTPCGMMerger* GPUrestrict() merger, int iT
7979
}
8080
}
8181

82-
int nWays = param.rec.tpc.nWays;
83-
int maxN = N;
82+
const int nWays = param.rec.tpc.nWays;
83+
const int maxN = N;
8484
int ihitStart = 0;
8585
float covYYUpd = 0.f;
8686
float lastUpdateX = -1.f;
@@ -362,7 +362,7 @@ GPUd() bool GPUTPCGMTrackParam::Fit(GPUTPCGMMerger* GPUrestrict() merger, int iT
362362
}
363363
}
364364
if (((nWays - iWay) & 1) && (clusters[0].slice < 18) == (clusters[maxN - 1].slice < 18)) {
365-
ShiftZ2(clusters, clustersXYZ, merger, N);
365+
ShiftZ2(clusters, clustersXYZ, merger, maxN);
366366
}
367367
}
368368
ConstrainSinPhi();

0 commit comments

Comments
 (0)