File indexing completed on 2024-04-06 12:03:45
0001 #ifndef CUDADataFormats_SiPixelCluster_interface_gpuClusteringConstants_h
0002 #define CUDADataFormats_SiPixelCluster_interface_gpuClusteringConstants_h
0003
0004 #include <cstdint>
0005 #include <limits>
0006
0007 namespace gpuClustering {
0008 #ifdef GPU_SMALL_EVENTS
0009
0010 constexpr uint32_t maxHitsInIter() { return 64; }
0011 #else
0012
0013
0014 constexpr uint32_t maxHitsInIter() { return 160; }
0015 #endif
0016
0017 constexpr uint16_t clusterThresholdLayerOne = 2000;
0018 constexpr uint16_t clusterThresholdOtherLayers = 4000;
0019
0020 constexpr uint32_t maxNumDigis = 3 * 256 * 1024;
0021 constexpr uint16_t maxNumModules = 4000;
0022
0023 constexpr uint16_t invalidModuleId = std::numeric_limits<uint16_t>::max() - 1;
0024 constexpr int invalidClusterId = -9999;
0025 static_assert(invalidModuleId > maxNumModules);
0026
0027 }
0028
0029 #endif