1 #ifndef DataFormats_HcalRecHit_HcalSpecialTimes_h_
2 #define DataFormats_HcalRecHit_HcalSpecialTimes_h_
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_