CMS 3D CMS Logo

ClusteringConstants.h
Go to the documentation of this file.
1 #ifndef DataFormats_SiPixelClusterSoA_interface_ClusteringConstants_h
2 #define DataFormats_SiPixelClusterSoA_interface_ClusteringConstants_h
3 
4 #include <cstdint>
5 #include <limits>
6 
7 //TODO: move this to TrackerTraits!
8 namespace pixelClustering {
9 #ifdef GPU_SMALL_EVENTS
10  // kept for testing and debugging
11  constexpr uint32_t maxHitsInIter() { return 64; }
12 #else
13  // optimized for real data PU 50
14  // tested on MC events with 55-75 pileup events
15  constexpr uint32_t maxHitsInIter() { return 160; } //TODO better tuning for PU 140-200
16 #endif
17  constexpr uint32_t maxHitsInModule() { return 1024; }
18 
21 
24 
25  constexpr uint32_t maxNumDigis = 3 * 256 * 1024; // @PU=200 µ=530k σ=50k this is >4σ away
26  constexpr uint16_t maxNumModules = 5000; // This is an upperlimit taking into account D110 has 4000 modules
27 
31  static_assert(invalidModuleId > maxNumModules); // invalidModuleId must be > maxNumModules
32 
33 } // namespace pixelClustering
34 
35 #endif // DataFormats_SiPixelClusterSoA_interface_ClusteringConstants_h
constexpr uint16_t clusterThresholdOtherLayers
constexpr uint16_t clusterThresholdPhase2LayerOne
constexpr uint32_t maxHitsInIter()
constexpr uint16_t clusterThresholdLayerOne
constexpr int invalidClusterId
constexpr int32_t maxNumClustersPerModules
constexpr uint16_t clusterThresholdPhase2OtherLayers
constexpr uint16_t maxNumModules
constexpr uint32_t maxNumDigis
constexpr uint16_t invalidModuleId
constexpr uint32_t maxHitsInModule()