CMS 3D CMS Logo

gpuClusteringConstants.h
Go to the documentation of this file.
1 #ifndef CUDADataFormats_SiPixelCluster_interface_gpuClusteringConstants_h
2 #define CUDADataFormats_SiPixelCluster_interface_gpuClusteringConstants_h
3 
4 #include <cstdint>
5 #include <limits>
6 
7 namespace pixelGPUConstants {
8 #ifdef GPU_SMALL_EVENTS
9  // kept for testing and debugging
10  constexpr uint32_t maxNumberOfHits = 24 * 1024;
11 #else
12  // data at pileup 50 has 18300 +/- 3500 hits; 40000 is around 6 sigma away
13  // tested on MC events with 55-75 pileup events
14  constexpr uint32_t maxNumberOfHits = 48 * 1024;
15 #endif
16 } // namespace pixelGPUConstants
17 
18 namespace gpuClustering {
19 #ifdef GPU_SMALL_EVENTS
20  // kept for testing and debugging
21  constexpr uint32_t maxHitsInIter() { return 64; }
22 #else
23  // optimized for real data PU 50
24  // tested on MC events with 55-75 pileup events
25  constexpr uint32_t maxHitsInIter() { return 160; }
26 #endif
27  constexpr uint32_t maxHitsInModule() { return 1024; }
28 
29  constexpr uint16_t maxNumModules = 2000;
33  static_assert(invalidModuleId > maxNumModules); // invalidModuleId must be > maxNumModules
34 
35 } // namespace gpuClustering
36 
37 #endif // CUDADataFormats_SiPixelCluster_interface_gpuClusteringConstants_h
gpuClustering
Definition: gpuClusteringConstants.h:18
gpuClustering::maxHitsInModule
constexpr uint32_t maxHitsInModule()
Definition: gpuClusteringConstants.h:27
gpuClustering::maxNumClusters
constexpr uint32_t maxNumClusters
Definition: gpuClusteringConstants.h:31
gpuClustering::maxNumModules
constexpr uint16_t maxNumModules
Definition: gpuClusteringConstants.h:29
gpuClustering::maxHitsInIter
constexpr uint32_t maxHitsInIter()
Definition: gpuClusteringConstants.h:25
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
gpuClustering::invalidModuleId
constexpr uint16_t invalidModuleId
Definition: gpuClusteringConstants.h:32
gpuClustering::maxNumClustersPerModules
constexpr int32_t maxNumClustersPerModules
Definition: gpuClusteringConstants.h:30
pixelGPUConstants
Definition: gpuClusteringConstants.h:7
pixelGPUConstants::maxNumberOfHits
constexpr uint32_t maxNumberOfHits
Definition: gpuClusteringConstants.h:14