Skip to content

Commit f9b1d32

Browse files
fweigdavidrohr
authored andcommitted
TPC Cluster Finder: Fix invalid write in peak finder.
1 parent 07cc2db commit f9b1d32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

GPU/GPUTracking/TPCClusterFinder/GPUTPCCFPeakFinder.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,7 @@ GPUd() void GPUTPCCFPeakFinder::findPeaksImpl(int nBlocks, int nThreads, int iBl
121121

122122
isPeakPredicate[idx] = peak;
123123

124-
peakMap[pos] = (uchar(charge > calib.tpc.cfInnerThreshold) << 1) | peak;
124+
if (pos.valid()) {
125+
peakMap[pos] = (uchar(charge > calib.tpc.cfInnerThreshold) << 1) | peak;
126+
}
125127
}

0 commit comments

Comments
 (0)