CMS 3D CMS Logo

Functions | Variables
HcalSpecialTimes Namespace Reference

Functions

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

Variables

constexpr float UNKNOWN_T_50TO57 = -130.f
 
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

◆ getTDCTime()

constexpr float HcalSpecialTimes::getTDCTime ( const int  tdc)
inlineconstexpr

Definition at line 55 of file HcalSpecialTimes.h.

55  {
56  constexpr float tdc_to_ns = 0.5f;
57 
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;
63 
64  float t = tdc_to_ns * tdc;
65  if (tdc > six_bits_mask || tdc < 0)
67  else if (tdc > tdc_code_largestnormal) {
68  // The undershoot code happens by far more often
69  // than any other special code. So check for it first.
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)
78  else
80  }
81 
82  return t;
83  }

References OrderedSet::t, UNKNOWN_T_50TO57, UNKNOWN_T_DLL_FAILURE, UNKNOWN_T_INVALID_CODE, UNKNOWN_T_INVALID_RANGE, UNKNOWN_T_OVERSHOOT, and UNKNOWN_T_UNDERSHOOT.

Referenced by HFPreRecAlgo::reconstruct().

◆ isSpecial()

constexpr bool HcalSpecialTimes::isSpecial ( const float  t)
inlineconstexpr

Variable Documentation

◆ UNKNOWN_T_50TO57

constexpr float HcalSpecialTimes::UNKNOWN_T_50TO57 = -130.f
constexpr

Definition at line 50 of file HcalSpecialTimes.h.

Referenced by getTDCTime().

◆ UNKNOWN_T_DLL_FAILURE

constexpr float HcalSpecialTimes::UNKNOWN_T_DLL_FAILURE = -115.f
constexpr

Definition at line 38 of file HcalSpecialTimes.h.

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

◆ UNKNOWN_T_INVALID_CODE

constexpr float HcalSpecialTimes::UNKNOWN_T_INVALID_CODE = -105.f
constexpr

Definition at line 31 of file HcalSpecialTimes.h.

Referenced by getTDCTime().

◆ UNKNOWN_T_INVALID_RANGE

constexpr float HcalSpecialTimes::UNKNOWN_T_INVALID_RANGE = -125.f
constexpr

Definition at line 45 of file HcalSpecialTimes.h.

Referenced by getTDCTime().

◆ UNKNOWN_T_NOTDC

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

◆ UNKNOWN_T_OVERSHOOT

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

Definition at line 35 of file HcalSpecialTimes.h.

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

◆ UNKNOWN_T_UNDERSHOOT

constexpr float HcalSpecialTimes::UNKNOWN_T_UNDERSHOOT = -100.f
constexpr
HcalSpecialTimes::UNKNOWN_T_DLL_FAILURE
constexpr float UNKNOWN_T_DLL_FAILURE
Definition: HcalSpecialTimes.h:38
HcalSpecialTimes::UNKNOWN_T_INVALID_CODE
constexpr float UNKNOWN_T_INVALID_CODE
Definition: HcalSpecialTimes.h:31
HcalSpecialTimes::UNKNOWN_T_INVALID_RANGE
constexpr float UNKNOWN_T_INVALID_RANGE
Definition: HcalSpecialTimes.h:45
HcalSpecialTimes::UNKNOWN_T_UNDERSHOOT
constexpr float UNKNOWN_T_UNDERSHOOT
Definition: HcalSpecialTimes.h:28
HcalSpecialTimes::UNKNOWN_T_50TO57
constexpr float UNKNOWN_T_50TO57
Definition: HcalSpecialTimes.h:50
OrderedSet.t
t
Definition: OrderedSet.py:90
HcalSpecialTimes::UNKNOWN_T_OVERSHOOT
constexpr float UNKNOWN_T_OVERSHOOT
Definition: HcalSpecialTimes.h:35