1 #ifndef DataFormats_HcalRecHit_HcalSpecialTimes_h_
2 #define DataFormats_HcalRecHit_HcalSpecialTimes_h_
25 namespace HcalSpecialTimes {
56 constexpr
float tdc_to_ns = 0.5f;
58 constexpr
int six_bits_mask = 0x3f;
59 constexpr
int tdc_code_largestnormal = 49;
60 constexpr
int tdc_code_invalid = 58;
61 constexpr
int tdc_code_overshoot = 62;
62 constexpr
int tdc_code_undershoot = 63;
64 float t = tdc_to_ns * tdc;
65 if (tdc > six_bits_mask || tdc < 0)
67 else if (tdc > tdc_code_largestnormal) {
70 if (tdc == tdc_code_undershoot)
72 else if (tdc == tdc_code_overshoot)
74 else if (tdc == tdc_code_invalid)
76 else if (tdc < tdc_code_invalid)
86 #endif // DataFormats_HcalRecHit_HcalSpecialTimes_h_
constexpr float UNKNOWN_T_DLL_FAILURE
constexpr float UNKNOWN_T_UNDERSHOOT
constexpr float getTDCTime(const int tdc)
constexpr float UNKNOWN_T_INVALID_RANGE
constexpr float UNKNOWN_T_OVERSHOOT
constexpr float UNKNOWN_T_INVALID_CODE
constexpr float UNKNOWN_T_50TO57
constexpr bool isSpecial(const float t)
constexpr float UNKNOWN_T_NOTDC