Skip to content

Commit 5d6e2fc

Browse files
committed
GPU TPC: Fix sign of maxDriftTime when computing time window constraint
1 parent 9de6fa6 commit 5d6e2fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

GPU/GPUTracking/Merger/GPUTPCGMO2Output.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ GPUdii() void GPUTPCGMO2Output::Thread<GPUTPCGMO2Output::output>(int nBlocks, in
199199
const float maxDriftTime = merger.GetConstantMem()->calibObjects.fastTransformHelper->getCorrMap()->getMaxDriftTime(t1 > t2 ? sector1 : sector2);
200200
const float tmax = CAMath::Min(tmin + maxDriftTime, CAMath::Max(t1, t2));
201201
float delta = 0.f;
202-
if (time0 < tmax + maxDriftTime) {
203-
delta = tmax + maxDriftTime - time0;
202+
if (time0 + maxDriftTime < tmax) {
203+
delta = tmax - time0 - maxDriftTime;
204204
}
205205
if (tmin < time0 + delta) {
206206
delta = tmin - time0;

0 commit comments

Comments
 (0)