ATLAS Offline Software
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 
17 namespace LVL1 {
18 
24 class QuadLinear {
25 
26 public:
28  static unsigned int Compress(int Et);
30  static unsigned int Expand(int Code);
31 
32 private:
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
LVL1::QuadLinear::m_nRanges
static const int m_nRanges
Number of ET ranges to encode in.
Definition: QuadLinear.h:46
LVL1::QuadLinear::Expand
static unsigned int Expand(int Code)
Uncompress data.
Definition: QuadLinear.cxx:37
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::QuadLinear::m_nShift
static const int m_nShift
Number of bits to shift by in each step.
Definition: QuadLinear.h:48
LVL1::QuadLinear::m_mask
static const unsigned int m_mask
Mask to select 6-bit field.
Definition: QuadLinear.h:44
LVL1::QuadLinear::m_Offset
static const int m_Offset
Offset for compression code.
Definition: QuadLinear.h:50
LVL1::QuadLinear::Compress
static unsigned int Compress(int Et)
Compress data.
Definition: QuadLinear.cxx:21