1 #ifndef RecoLocalTracker_SiPixelClusterizer_plugins_gpuClusterChargeCut_h 2 #define RecoLocalTracker_SiPixelClusterizer_plugins_gpuClusterChargeCut_h 15 template <
typename TrackerTraits>
19 uint16_t* __restrict__
id,
20 uint16_t
const* __restrict__
adc,
23 uint32_t
const* __restrict__
moduleId,
41 auto thisModuleId =
id[firstPixel];
45 thisModuleId =
id[firstPixel];
62 printf(
"Warning too many clusters in module %d in block %d: %d > %d\n",
75 if (
id[
i] != thisModuleId)
86 if (thisModuleId % 100 == 1)
88 printf(
"start cluster charge cut for module %d in block %d\n", thisModuleId,
blockIdx.x);
100 if (
id[
i] != thisModuleId)
120 __shared__ uint16_t
ws[32];
122 auto minClust = nclus > maxThreads ? maxThreads : nclus;
130 uint32_t prevBlockEnd = ((
i / maxThreads) * maxThreads) - 1;
144 if (
id[
i] != thisModuleId)
159 #endif // RecoLocalTracker_SiPixelClusterizer_plugins_gpuClusterChargeCut_h
__shared__ uint8_t ok[maxNumClustersPerModules]
uint16_t *__restrict__ uint16_t const *__restrict__ uint32_t const *__restrict__ uint32_t *__restrict__ nClustersInModule
auto const good
min quality of good
__shared__ int32_t charge[maxNumClustersPerModules]
constexpr uint16_t numberOfModules
constexpr int32_t getThresholdForLayerOnCondition(bool isLayer1) const noexcept
assert(TrackerTraits::numberOfModules< maxNumModules)
constexpr uint16_t maxNumModules
uint16_t *__restrict__ uint16_t const *__restrict__ uint32_t const *__restrict__ uint32_t *__restrict__ uint32_t const *__restrict__ int32_t *__restrict__ clusterId
constexpr uint16_t invalidModuleId
uint16_t *__restrict__ uint16_t const *__restrict__ uint32_t const *__restrict__ uint32_t *__restrict__ uint32_t const *__restrict__ int32_t *__restrict__ uint32_t numElements
uint16_t *__restrict__ uint16_t const *__restrict__ uint32_t const *__restrict__ moduleStart
__shared__ uint16_t newclusId[maxNumClustersPerModules]
float clusterChargeCut(const edm::ParameterSet &conf, const char *name="clusterChargeCut")
constexpr int32_t maxNumClustersPerModules
static constexpr uint32_t layerStart[numberOfLayers+1]
uint16_t *__restrict__ uint16_t const *__restrict__ uint32_t const *__restrict__ uint32_t *__restrict__ uint32_t const *__restrict__ moduleId
bool __syncthreads_and(bool x)
T1 atomicAdd(T1 *a, T2 b)
uint16_t *__restrict__ uint16_t const *__restrict__ adc