Skip to content

Commit a115465

Browse files
authored
Merge pull request #49024 from AdrianoDee/hit_clamping_160X
Properly Clamping the Clusters in Module with `maxNumClustersPerModules`
2 parents 6562d2d + 50f81c3 commit a115465

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

RecoLocalTracker/SiPixelClusterizer/plugins/alpaka/ClusterChargeCut.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,11 @@ namespace pixelClustering {
9595
}
9696
}
9797
nclus = maxNumClustersPerModules;
98+
clus_view[thisModuleId].clusInModule() = nclus;
9899
}
99100

101+
ALPAKA_ASSERT_ACC(clus_view[thisModuleId].clusInModule() <= maxNumClustersPerModules);
102+
100103
#ifdef GPU_DEBUG
101104
if (thisModuleId % 100 == 1)
102105
if (cms::alpakatools::once_per_block(acc))

0 commit comments

Comments
 (0)