CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  constexpr uint32_t maxHitsInModule() { return 1024; }
17 
18  constexpr uint32_t maxNumDigis = 3 * 256 * 1024; // @PU=200 µ=530k σ=50k this is >4σ away
19  constexpr uint16_t maxNumModules = 4000;
20 
23  constexpr int invalidClusterId = -9999;
24  static_assert(invalidModuleId > maxNumModules); // invalidModuleId must be > maxNumModules
25 
26 } // namespace gpuClustering
27 
28 #endif // CUDADataFormats_SiPixelCluster_interface_gpuClusteringConstants_h
constexpr uint32_t maxHitsInModule()
constexpr uint32_t maxHitsInIter()
constexpr int32_t maxNumClustersPerModules
constexpr uint16_t maxNumModules
constexpr uint16_t invalidModuleId
constexpr int invalidClusterId
constexpr uint32_t maxNumDigis