CMS 3D CMS Logo

SiPixelClusterThresholds.h
Go to the documentation of this file.
1 #ifndef RecoLocalTracker_SiPixelClusterizer_interface_SiPixelClusterThresholds_h
2 #define RecoLocalTracker_SiPixelClusterizer_interface_SiPixelClusterThresholds_h
3 
4 /* This struct is an implementation detail of this package.
5  * It's in the interface directory because it needs to be shared by the legacy, CUDA, and Alpaka plugins.
6  */
7 
9  inline constexpr int32_t getThresholdForLayerOnCondition(bool isLayer1) const noexcept {
10  return isLayer1 ? layer1 : otherLayers;
11  }
12  const int32_t layer1 = 0;
13  const int32_t otherLayers = 0;
14 
15  const float vCaltoElectronGain = 0;
16  const float vCaltoElectronGain_L1 = 0;
17  const float vCaltoElectronOffset = 0;
18  const float vCaltoElectronOffset_L1 = 0;
19 
20  const float electronPerADCGain = 0;
21  const int8_t phase2ReadoutMode = 0;
22  const uint16_t phase2DigiBaseline = 0;
23  const uint8_t phase2KinkADC = 0;
24 
25  //Basic just for thresholds
26  SiPixelClusterThresholds(const int32_t layer1, const int32_t otherLayers)
28 
29  //For Phase1
31  const int32_t otherLayers,
32  const float vCaltoElectronGain,
33  const float vCaltoElectronGain_L1,
34  const float vCaltoElectronOffset,
35  const float vCaltoElectronOffset_L1)
36  : layer1(layer1),
42 
43  //For Phase2
45  const int32_t otherLayers,
46  const float electronPerADCGain,
47  const int8_t phase2ReadoutMode,
48  const uint16_t phase2DigiBaseline,
49  const uint8_t phase2KinkADC)
50  : layer1(layer1),
56 };
57 
58 #endif // RecoLocalTracker_SiPixelClusterizer_interface_SiPixelClusterThresholds_h
constexpr int32_t getThresholdForLayerOnCondition(bool isLayer1) const noexcept
SiPixelClusterThresholds(const int32_t layer1, const int32_t otherLayers, const float vCaltoElectronGain, const float vCaltoElectronGain_L1, const float vCaltoElectronOffset, const float vCaltoElectronOffset_L1)
SiPixelClusterThresholds(const int32_t layer1, const int32_t otherLayers, const float electronPerADCGain, const int8_t phase2ReadoutMode, const uint16_t phase2DigiBaseline, const uint8_t phase2KinkADC)
SiPixelClusterThresholds(const int32_t layer1, const int32_t otherLayers)