Skip to content

Commit 732fd86

Browse files
committed
GPU TPC: attachProtect cluster flag should not affect other flags
1 parent 9e9f5bf commit 732fd86

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

GPU/GPUTracking/Merger/GPUTPCGMMerger.cxx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,9 +1900,7 @@ GPUd() void GPUTPCGMMerger::Finalize0(int32_t nBlocks, int32_t nThreads, int32_t
19001900
mTrackSort[mTrackOrderAttach[i]] = i;
19011901
}
19021902
for (uint32_t i = iBlock * nThreads + iThread; i < mMemory->nMergedTrackClusters; i += nThreads * nBlocks) {
1903-
if (!(mClusterAttachment[mClusters[i].num] & attachProtect)) {
1904-
mClusterAttachment[mClusters[i].num] = 0; // Reset adjacent attachment for attached clusters, set correctly below
1905-
}
1903+
mClusterAttachment[mClusters[i].num] = mClusterAttachment[mClusters[i].num] & attachProtect; // Reset adjacent attachment for attached clusters, set correctly below
19061904
}
19071905
}
19081906

@@ -1925,7 +1923,7 @@ GPUd() void GPUTPCGMMerger::Finalize1(int32_t nBlocks, int32_t nThreads, int32_t
19251923
if (trk.Leg() == 0) {
19261924
weight |= attachGoodLeg;
19271925
}
1928-
if (CAMath::Abs(trk.GetParam().GetQPt() * Param().qptB5Scaler) <= Param().rec.tpc.rejectQPtB5 && !trk.MergedLooper() && trk.Leg() == 0) {
1926+
if ((mClusterAttachment[id] & attachProtect) || CAMath::Abs(trk.GetParam().GetQPt() * Param().qptB5Scaler) <= Param().rec.tpc.rejectQPtB5 && !trk.MergedLooper() && trk.Leg() == 0) {
19291927
weight |= attachProtect;
19301928
}
19311929
CAMath::AtomicMax(&mClusterAttachment[id], weight);

0 commit comments

Comments
 (0)