CMS 3D CMS Logo

Functions | Variables
HcalSpecialTimes Namespace Reference

Functions

float getTDCTime (const int tdc)
 
bool isSpecial (const float t)
 

Variables

constexpr float UNKNOWN_T_DLL_FAILURE = -115.f
 
constexpr float UNKNOWN_T_INVALID_CODE = -105.f
 
constexpr float UNKNOWN_T_INVALID_RANGE = -125.f
 
constexpr float UNKNOWN_T_NOTDC = -120.f
 
constexpr float UNKNOWN_T_OVERSHOOT = -110.f
 
constexpr float UNKNOWN_T_UNDERSHOOT = -100.f
 

Function Documentation

float HcalSpecialTimes::getTDCTime ( const int  tdc)
inline

Definition at line 48 of file HcalSpecialTimes.h.

References constexpr, lumiQTWidget::t, UNKNOWN_T_DLL_FAILURE, UNKNOWN_T_INVALID_CODE, UNKNOWN_T_INVALID_RANGE, UNKNOWN_T_OVERSHOOT, and UNKNOWN_T_UNDERSHOOT.

Referenced by HFPreRecAlgo::reconstruct().

49  {
50  constexpr float tdc_to_ns = 0.5f;
51 
52  constexpr int six_bits_mask = 0x3f;
53  constexpr int tdc_code_overshoot = 62;
54  constexpr int tdc_code_undershoot = 63;
55  constexpr int tdc_code_invalid = 58;
56 
57  float t = tdc_to_ns*tdc;
58  if (tdc > six_bits_mask || tdc < 0)
60  else if (tdc == tdc_code_overshoot)
62  else if (tdc == tdc_code_undershoot)
64  else if (tdc == tdc_code_invalid)
66  else if (tdc > tdc_code_invalid)
68 
69  return t;
70  }
constexpr float UNKNOWN_T_DLL_FAILURE
#define constexpr
constexpr float UNKNOWN_T_UNDERSHOOT
constexpr float UNKNOWN_T_INVALID_RANGE
constexpr float UNKNOWN_T_OVERSHOOT
constexpr float UNKNOWN_T_INVALID_CODE
bool HcalSpecialTimes::isSpecial ( const float  t)
inline

Variable Documentation

constexpr float HcalSpecialTimes::UNKNOWN_T_DLL_FAILURE = -115.f

Definition at line 33 of file HcalSpecialTimes.h.

Referenced by HFFlexibleTimeCheck::determineAnodeStatus(), and getTDCTime().

constexpr float HcalSpecialTimes::UNKNOWN_T_INVALID_CODE = -105.f

Definition at line 26 of file HcalSpecialTimes.h.

Referenced by getTDCTime().

constexpr float HcalSpecialTimes::UNKNOWN_T_INVALID_RANGE = -125.f

Definition at line 40 of file HcalSpecialTimes.h.

Referenced by getTDCTime().

constexpr float HcalSpecialTimes::UNKNOWN_T_NOTDC = -120.f
constexpr float HcalSpecialTimes::UNKNOWN_T_OVERSHOOT = -110.f

Definition at line 30 of file HcalSpecialTimes.h.

Referenced by HFFlexibleTimeCheck::determineAnodeStatus(), and getTDCTime().

constexpr float HcalSpecialTimes::UNKNOWN_T_UNDERSHOOT = -100.f