ATLAS Offline Software
Loading...
Searching...
No Matches
QuadLinear.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4/***************************************************************************
5 QuadLinear.h - description
6 -------------------
7 begin : 31-05-2006
8 email : Alan.Watson@cern.ch
9 ***************************************************************************/
10
11
12 #ifndef QUADLINEAR_H
13 #define QUADLINEAR_H
14
15#include <stdlib.h>
16
17namespace LVL1 {
18
25
26public:
28 static unsigned int Compress(int Et);
30 static unsigned int Expand(int Code);
31
32private:
34 static const unsigned int m_mask = 0x3F;
36 static const int m_nRanges = 4;
38 static const int m_nShift = 2;
40 static const int m_Offset = 6;
41};
42
43}//end of ns
44
45#endif
QuadLinear encoding is used for transmission of ET/Ex/Ey sums from JEM to CMM.
Definition QuadLinear.h:24
static unsigned int Expand(int Code)
Uncompress data.
static const int m_nShift
Number of bits to shift by in each step.
Definition QuadLinear.h:38
static const unsigned int m_mask
Mask to select 6-bit field.
Definition QuadLinear.h:34
static unsigned int Compress(int Et)
Compress data.
static const int m_Offset
Offset for compression code.
Definition QuadLinear.h:40
static const int m_nRanges
Number of ET ranges to encode in.
Definition QuadLinear.h:36
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...