1 #ifndef DataFormats_HcalRecHit_HcalSpecialTimes_h_ 2 #define DataFormats_HcalRecHit_HcalSpecialTimes_h_ 64 constexpr int tdc_code_largestnormal = 49;
69 float t = tdc_to_ns*tdc;
70 if (tdc > six_bits_mask || tdc < 0)
72 else if (tdc > tdc_code_largestnormal)
76 if (tdc == tdc_code_undershoot)
78 else if (tdc == tdc_code_overshoot)
80 else if (tdc == tdc_code_invalid)
82 else if (tdc < tdc_code_invalid)
92 #endif // DataFormats_HcalRecHit_HcalSpecialTimes_h_ float getTDCTime(const int tdc)
constexpr float UNKNOWN_T_DLL_FAILURE
constexpr float UNKNOWN_T_UNDERSHOOT
constexpr float UNKNOWN_T_INVALID_RANGE
constexpr float UNKNOWN_T_OVERSHOOT
constexpr float UNKNOWN_T_INVALID_CODE
bool isSpecial(const float t)
constexpr float UNKNOWN_T_50TO57
constexpr float UNKNOWN_T_NOTDC