1 #ifndef DataFormats_HcalRecHit_HcalSpecialTimes_h_ 2 #define DataFormats_HcalRecHit_HcalSpecialTimes_h_ 58 constexpr
float tdc_to_ns = 0.5f;
60 constexpr
int six_bits_mask = 0x3f;
61 constexpr
int tdc_code_largestnormal = 49;
62 constexpr
int tdc_code_invalid = 58;
63 constexpr
int tdc_code_overshoot = 62;
64 constexpr
int tdc_code_undershoot = 63;
66 float t = tdc_to_ns * tdc;
67 if (tdc > six_bits_mask || tdc < 0)
69 else if (tdc > tdc_code_largestnormal) {
72 if (tdc == tdc_code_undershoot)
74 else if (tdc == tdc_code_overshoot)
76 else if (tdc == tdc_code_invalid)
78 else if (tdc < tdc_code_invalid)
88 #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
constexpr float DEFAULT_ccTIME