CMS 3D CMS Logo

HcalSpecialTimes.h
Go to the documentation of this file.
1 #ifndef DataFormats_HcalRecHit_HcalSpecialTimes_h_
2 #define DataFormats_HcalRecHit_HcalSpecialTimes_h_
3 
4 namespace HcalSpecialTimes
5 {
6  // Special value for the rise time used in case the QIE10/11 pulse
7  // is always below the discriminator
9 
10  // Special value for the rise time used in case the QIE10/11 pulse
11  // is always above the discriminator
13 
14  // Special value for the time to use in case the TDC info is
15  // not available or not meaningful (e.g., for QIE8)
16  constexpr float UNKNOWN_T_NOTDC = -120.f;
17 
18  // Check if the given time represents one of the special values
19  inline bool isSpecial(const float t)
20  {
21  return t == UNKNOWN_T_UNDERSHOOT ||
22  t == UNKNOWN_T_OVERSHOOT ||
23  t == UNKNOWN_T_NOTDC;
24  }
25 }
26 
27 #endif // DataFormats_HcalRecHit_HcalSpecialTimes_h_
#define constexpr
constexpr float UNKNOWN_T_UNDERSHOOT
constexpr float UNKNOWN_T_OVERSHOOT
bool isSpecial(const float t)
constexpr float UNKNOWN_T_NOTDC