CMS 3D CMS Logo

SiPixelClusterThresholds.h
Go to the documentation of this file.
1 #ifndef RecoLocalTracker_SiPixelClusterizer_plugins_SiPixelClusterThresholds_h
2 #define RecoLocalTracker_SiPixelClusterizer_plugins_SiPixelClusterThresholds_h
3 
5  inline constexpr int32_t getThresholdForLayerOnCondition(bool isLayer1) const noexcept {
6  return isLayer1 ? layer1 : otherLayers;
7  }
8  const int32_t layer1 = 0;
9  const int32_t otherLayers = 0;
10 
11  const float vCaltoElectronGain = 0;
12  const float vCaltoElectronGain_L1 = 0;
13  const float vCaltoElectronOffset = 0;
14  const float vCaltoElectronOffset_L1 = 0;
15 
16  const float electronPerADCGain = 0;
17  const int8_t phase2ReadoutMode = 0;
18  const uint16_t phase2DigiBaseline = 0;
19  const uint8_t phase2KinkADC = 0;
20 
21  //Basic just for thresholds
22  SiPixelClusterThresholds(const int32_t layer1, const int32_t otherLayers)
24 
25  //For Phase1
27  const int32_t otherLayers,
28  const float vCaltoElectronGain,
29  const float vCaltoElectronGain_L1,
30  const float vCaltoElectronOffset,
31  const float vCaltoElectronOffset_L1)
32  : layer1(layer1),
38 
39  //For Phase2
41  const int32_t otherLayers,
42  const float electronPerADCGain,
43  const int8_t phase2ReadoutMode,
44  const uint16_t phase2DigiBaseline,
45  const uint8_t phase2KinkADC)
46  : layer1(layer1),
52 };
53 
54 #endif // RecoLocalTracker_SiPixelClusterizer_plugins_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)