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,
42 auto thisModuleId =
id[firstPixel];
51 printf(
"Warning too many clusters in module %d in block %d: %d > %d\n",
64 if (
id[
i] != thisModuleId)
75 if (thisModuleId % 100 == 1)
77 printf(
"start cluster charge cut for module %d in block %d\n", thisModuleId,
blockIdx.x);
89 if (
id[
i] != thisModuleId)
109 __shared__ uint16_t
ws[32];
120 if (
id[
i] != thisModuleId)
135 #endif // RecoLocalTracker_SiPixelClusterizer_plugins_gpuClusterChargeCut_h
__shared__ uint8_t ok[maxNumClustersPerModules]
constexpr int nMaxModules
constexpr uint32_t layerStart[numberOfLayers+1]
float clusterChargeCut(const edm::ParameterSet &conf, const char *name="clusterChargeCut")
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
constexpr uint32_t numberOfModules
uint16_t *__restrict__ uint16_t const *__restrict__ uint32_t const *__restrict__ uint32_t *__restrict__ uint32_t const *__restrict__ moduleId
constexpr int32_t getThresholdForLayerOnCondition(bool isLayer1) const noexcept
uint16_t *__restrict__ uint16_t const *__restrict__ uint32_t const *__restrict__ uint32_t *__restrict__ uint32_t const *__restrict__ int32_t *__restrict__ clusterId
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__ nClustersInModule
constexpr uint16_t invalidModuleId
constexpr uint32_t numberOfModules
auto const good
min quality of good
__shared__ uint16_t newclusId[maxNumClustersPerModules]
constexpr uint32_t layerStart[numberOfLayers+1]
bool __syncthreads_and(bool x)
T1 atomicAdd(T1 *a, T2 b)
uint16_t *__restrict__ uint16_t const *__restrict__ adc