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; } //TODO better tuning for PU 140-200
15 #endif
16 
17  constexpr uint16_t clusterThresholdLayerOne = 2000;
18  constexpr uint16_t clusterThresholdOtherLayers = 4000;
19 
20  constexpr uint32_t maxNumDigis = 3 * 256 * 1024; // @PU=200 µ=530 σ=50k this is >4σ away
21  constexpr uint16_t maxNumModules = 4000;
22 
24  constexpr int invalidClusterId = -9999;
25  static_assert(invalidModuleId > maxNumModules); // invalidModuleId must be > maxNumModules
26 
27 } // namespace gpuClustering
28 
29 #endif // CUDADataFormats_SiPixelCluster_interface_gpuClusteringConstants_h
constexpr uint32_t maxHitsInIter()
constexpr uint16_t clusterThresholdOtherLayers
constexpr uint16_t maxNumModules
constexpr uint16_t clusterThresholdLayerOne
constexpr uint16_t invalidModuleId
constexpr int invalidClusterId
constexpr uint32_t maxNumDigis