1 #ifndef RecoLocalTracker_SiPixelClusterizer_plugins_gpuClusterChargeCut_h 2 #define RecoLocalTracker_SiPixelClusterizer_plugins_gpuClusterChargeCut_h 17 template <
bool isPhase2>
21 uint16_t* __restrict__
id,
22 uint16_t
const* __restrict__
adc,
25 uint32_t
const* __restrict__
moduleId,
43 auto thisModuleId =
id[firstPixel];
47 thisModuleId =
id[firstPixel];
64 printf(
"Warning too many clusters in module %d in block %d: %d > %d\n",
77 if (
id[
i] != thisModuleId)
88 if (thisModuleId % 100 == 1)
90 printf(
"start cluster charge cut for module %d in block %d\n", thisModuleId,
blockIdx.x);
102 if (
id[
i] != thisModuleId)
122 __shared__ uint16_t
ws[32];
133 if (
id[
i] != thisModuleId)
148 #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
constexpr int nMaxModules
constexpr uint32_t layerStart[numberOfLayers+1]
float clusterChargeCut(const edm::ParameterSet &conf, const char *name="clusterChargeCut")
constexpr uint32_t numberOfModules
constexpr int32_t getThresholdForLayerOnCondition(bool isLayer1) const noexcept
assert(nMaxModules< maxNumModules)
constexpr int32_t maxNumClustersPerModules
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
constexpr uint32_t numberOfModules
auto const good
min quality of good
uint16_t *__restrict__ uint16_t const *__restrict__ uint32_t const *__restrict__ moduleStart
__shared__ uint16_t newclusId[maxNumClustersPerModules]
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