From 6a723e245239ffe11aca25937d29fafafc91410d Mon Sep 17 00:00:00 2001 From: David Rohr Date: Wed, 2 Dec 2026 17:10:29 +0100 Subject: [PATCH] GPU TPC Clusterizer: correct handling of cluster overlap --- .../TPCClusterFinder/GPUTPCCFCheckPadBaseline.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/GPU/GPUTracking/TPCClusterFinder/GPUTPCCFCheckPadBaseline.cxx b/GPU/GPUTracking/TPCClusterFinder/GPUTPCCFCheckPadBaseline.cxx index dd015f3bc61e9..1999f639ce79a 100644 --- a/GPU/GPUTracking/TPCClusterFinder/GPUTPCCFCheckPadBaseline.cxx +++ b/GPU/GPUTracking/TPCClusterFinder/GPUTPCCFCheckPadBaseline.cxx @@ -891,7 +891,14 @@ GPUd() void GPUTPCCFHIPClusterizer::Thread<0>(int32_t nBlocks, int32_t nThreads, // Use the middle of the saturated plateau, averaged over all tails of the cluster that were triggered by saturation on their own pad. // Computed only here: chains consisting only of tails inherited from neighboring pads have no saturated plateau, // but these never contain a saturated charge and are dropped by the qMax cut. - const float clusterTime = frag.start + satTimeSum / nSatTails - clusterer.Param().rec.tpc.clustersShiftTimebinsClusterizer; + const float fragmentTime = satTimeSum / nSatTails; + if (frag.isOverlap((tpccf::TPCFragmentTime)fragmentTime)) { // The neighboring fragment creates this cluster + if (clusterPosInRow) { + clusterPosInRow[iTail] = clusterer.mNMaxClusterPerRow; + } + continue; + } + const float clusterTime = frag.start + fragmentTime - clusterer.Param().rec.tpc.clustersShiftTimebinsClusterizer; assert(!CAMath::IsNaN(clusterTime)); const uint8_t flags = singlePad ? tpc::ClusterNative::flagSingle : 0;