forked from cms-patatrack/pixeltrack-standalone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgpuClusteringConstants.h
32 lines (26 loc) · 1.11 KB
/
gpuClusteringConstants.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef CUDADataFormats_SiPixelCluster_interface_gpuClusteringConstants_h
#define CUDADataFormats_SiPixelCluster_interface_gpuClusteringConstants_h
#include <cstdint>
namespace pixelGPUConstants {
#ifdef GPU_SMALL_EVENTS
constexpr uint32_t maxNumberOfHits = 24 * 1024;
#else
constexpr uint32_t maxNumberOfHits =
48 * 1024; // data at pileup 50 has 18300 +/- 3500 hits; 40000 is around 6 sigma away
#endif
} // namespace pixelGPUConstants
namespace gpuClustering {
#ifdef GPU_SMALL_EVENTS
constexpr uint32_t maxHitsInIter() { return 64; }
#else
// optimized for real data PU 50
constexpr uint32_t maxHitsInIter() { return 160; }
#endif
constexpr uint32_t maxHitsInModule() { return 1024; }
constexpr uint32_t MaxNumModules = 2000;
constexpr int32_t MaxNumClustersPerModules = maxHitsInModule();
constexpr uint32_t MaxHitsInModule = maxHitsInModule(); // as above
constexpr uint32_t MaxNumClusters = pixelGPUConstants::maxNumberOfHits;
constexpr uint16_t InvId = 9999; // must be > MaxNumModules
} // namespace gpuClustering
#endif // CUDADataFormats_SiPixelCluster_interface_gpuClusteringConstants_h