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 gpuClustering {
8 #ifdef GPU_SMALL_EVENTS
9  // kept for testing and debugging
10  constexpr uint32_t maxHitsInIter() { return 64; }
11 #else
12  // optimized for real data PU 50
13  // tested on MC events with 55-75 pileup events
14  constexpr uint32_t maxHitsInIter() { return 160; }
15 #endif
16  constexpr uint32_t maxHitsInModule() { return 1024; }
17 
18  constexpr uint16_t maxNumModules = 2000;
21  constexpr int invalidClusterId = -9999;
22  static_assert(invalidModuleId > maxNumModules); // invalidModuleId must be > maxNumModules
23 
24 } // namespace gpuClustering
25 
26 #endif // CUDADataFormats_SiPixelCluster_interface_gpuClusteringConstants_h
gpuClustering
Definition: gpuClusteringConstants.h:7
gpuClustering::maxHitsInModule
constexpr uint32_t maxHitsInModule()
Definition: gpuClusteringConstants.h:16
gpuClustering::maxNumModules
constexpr uint16_t maxNumModules
Definition: gpuClusteringConstants.h:18
gpuClustering::maxHitsInIter
constexpr uint32_t maxHitsInIter()
Definition: gpuClusteringConstants.h:14
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
gpuClustering::invalidModuleId
constexpr uint16_t invalidModuleId
Definition: gpuClusteringConstants.h:20
gpuClustering::maxNumClustersPerModules
constexpr int32_t maxNumClustersPerModules
Definition: gpuClusteringConstants.h:19
gpuClustering::invalidClusterId
constexpr int invalidClusterId
Definition: gpuClusteringConstants.h:21