29 for (
unsigned int i = 0; i <
s_nRanges; i++) {
35 unsigned int code = 0;
61 for (
unsigned int i = 0; i <
s_nRanges-1; ++i) {
62 if (code < (
unsigned int)
s_minCode[i+1])
break;
108 if (code < cut) code = 0;
119 unsigned int code = 0;
static const unsigned int m_noisecutPS
Noise Cuts per layer.
static const unsigned int s_LArMaxCode
Maximum code value.
static const int s_steps[s_nRanges]
Step sizes in each range, MeV.
static const unsigned int s_nRanges
Number of ranges.
static const unsigned int s_LArReserved
Reserved code value.
static const int s_maxET
Maximum ET value that can be encoded.
static const unsigned int m_noisecutL2
static const unsigned int s_LArSaturated
LAr saturated code.
static const unsigned int s_eFEXOverflow
L1Calo saturated/overflow.
static const unsigned int s_LArUnderflow
LAr underflow code.
static const int s_minCode[s_nRanges]
Minimum code value in each range.
static const int s_NoData
Indicates no data present.
static unsigned int threshold(unsigned int code, int threshold=-800)
Apply threshold to compressed data.
static const unsigned int s_LArOverflow
LAr overflow code.
static const int s_minET[s_nRanges]
Minimum ET values in each range, MeV.
static const unsigned int m_noisecutL1
static std::atomic< bool > s_disableNoiseCuts
static bool noiseCut(unsigned int code, int layer, bool ignoreDisable=false)
Apply supercell noise cut.
static int decode(int EtVal, int layer, bool ignoreDisable=false)
Full sequence.
static int expand(unsigned int code)
Uncompress data.
static const unsigned int s_LArInvalid
Invalid code value.
static const unsigned int m_noisecutHad
static const int s_error
Error return value.
static const unsigned int m_noisecutL3
static const unsigned int s_eFEXstep
L1Calo ET digit step.
static unsigned int compress(int Et)
Compress data.
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...