Skip to content

Commit 3b77378

Browse files
committed
Fix for right edge check
1 parent cd44d12 commit 3b77378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GPU/GPUTracking/TPCClusterFinder/ClusterAccumulator.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ GPUd() void ClusterAccumulator::finalize(const ChargePos& pos, Charge q, TPCTime
118118
bool correct = (leftEdge) ? (pad < mPadMean) : (pad > mPadMean);
119119
if (leftEdge && pad == 1) { // only check charge at boundary if maximum is at least one pad away from boundary
120120
correct = correct && (padBoundaryCharges[0] > 0); // Only correct if cluster is asymmetric with charge > 0 towards sector boundary, otherwise all charge is found
121-
} else if (!leftEdge && pad == (geo.NPads(pos.row()) - 1)) {
121+
} else if (!leftEdge && pad == (geo.NPads(pos.row()) - 2)) {
122122
correct = correct && (padBoundaryCharges[1] > 0);
123123
}
124124
mPadMean = (correct) ? pad : mPadMean;

0 commit comments

Comments
 (0)