File indexing completed on 2024-08-07 23:11:35
0001 #ifndef DataFormats_SiPixelClusterSoA_interface_ClusteringConstants_h
0002 #define DataFormats_SiPixelClusterSoA_interface_ClusteringConstants_h
0003
0004 #include <cstdint>
0005 #include <limits>
0006
0007
0008 namespace pixelClustering {
0009 #ifdef GPU_SMALL_EVENTS
0010
0011 constexpr uint32_t maxHitsInIter() { return 64; }
0012 #else
0013
0014
0015 constexpr uint32_t maxHitsInIter() { return 160; }
0016 #endif
0017 constexpr uint32_t maxHitsInModule() { return 1024; }
0018
0019 constexpr uint16_t clusterThresholdLayerOne = 2000;
0020 constexpr uint16_t clusterThresholdOtherLayers = 4000;
0021
0022 constexpr uint16_t clusterThresholdPhase2LayerOne = 4000;
0023 constexpr uint16_t clusterThresholdPhase2OtherLayers = 4000;
0024
0025 constexpr uint32_t maxNumDigis = 3 * 256 * 1024;
0026 constexpr uint16_t maxNumModules = 5000;
0027
0028 constexpr int32_t maxNumClustersPerModules = maxHitsInModule();
0029 constexpr uint16_t invalidModuleId = std::numeric_limits<uint16_t>::max() - 1;
0030 constexpr int invalidClusterId = -9999;
0031 static_assert(invalidModuleId > maxNumModules);
0032
0033 }
0034
0035 #endif