From 80e02ae280cf7f8409699a8fc031fa5ccff7552d Mon Sep 17 00:00:00 2001 From: Angela Czirkos Date: Wed, 24 Mar 2021 09:47:14 +0100 Subject: [PATCH] Add pixel cluster thresholds in electrons to gpuClusteringConstants Since these are used in the gpuClustering::clusterChargeCut function, it makes sense to set them here (than make them configurable for the SiPixelDigisClustersFromSoA class) See #32483 (comment #1 https://github.com/cms-sw/cmssw/issues/32483#issuecomment-745388762, comment #2 https://github.com/cms-sw/cmssw/issues/32483#issuecomment-744671102) --- .../SiPixelCluster/interface/gpuClusteringConstants.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CUDADataFormats/SiPixelCluster/interface/gpuClusteringConstants.h b/CUDADataFormats/SiPixelCluster/interface/gpuClusteringConstants.h index e9dfed7bca7a6..7f90bb9d4472f 100644 --- a/CUDADataFormats/SiPixelCluster/interface/gpuClusteringConstants.h +++ b/CUDADataFormats/SiPixelCluster/interface/gpuClusteringConstants.h @@ -32,6 +32,9 @@ namespace gpuClustering { constexpr uint16_t invalidModuleId = std::numeric_limits::max() - 1; static_assert(invalidModuleId > maxNumModules); // invalidModuleId must be > maxNumModules + constexpr int32_t thresholdElectrons = 4000; + constexpr int32_t thresholdElectrons_L1 = 2000; + } // namespace gpuClustering #endif // CUDADataFormats_SiPixelCluster_interface_gpuClusteringConstants_h