ATLAS Offline Software
L1METvalue.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  L1MET.h - description
6  -------------------
7  begin : 19-10-2007
8  email : Alan.Watson@cern.ch
9  ***************************************************************************/
10 
11 #ifndef L1METvalue_H
12 #define L1METvalue_H
13 
14 namespace LVL1 {
15 
21 class L1METvalue {
22 
23 public:
25  void calcL1MET(int Ex, int Ey, int& MET, unsigned int& Range, bool& Overflow);
27  void calcL1MET(int Ex, int Ey, float& MET, bool& Overflow);
29  void calcL1METQ(int Ex, int Ey, int& METQ, bool& Overflow);
31  void calcL1METSig(int Ex, int Ey, int SumET, float a, float b,
32  int XEmin, int XEmax, int sqrtTEmin, int sqrtTEmax,
33  float& XS, int& OutOfRange);
34  void calcL1METSig(int MET, unsigned int Range, int SumET, float a, float b,
35  int XEmin, int XEmax, int sqrtTEmin, int sqrtTEmax,
36  float& XS, int& OutOfRange);
37 
38 private:
40  static const unsigned int m_nBits = 6;
42  static const unsigned int m_nRanges = 4;
44  static const unsigned int m_mask = 0x3F;
46  static const unsigned int m_valueMask = 0x7F;
47  static const unsigned int m_rangeMask = 0x180;
49  static const int m_xsXEmax = 127;
50  static const int m_xsSqrtTEmax = 63;
51 };
52 
53 }//end of ns
54 
55 #endif
LVL1::L1METvalue::calcL1METQ
void calcL1METQ(int Ex, int Ey, int &METQ, bool &Overflow)
Return MET**2 value at precision used in threshold calculation.
Definition: L1METvalue.cxx:44
LVL1::L1METvalue::m_valueMask
static const unsigned int m_valueMask
Masks for integer MET word setting.
Definition: L1METvalue.h:56
LVL1::L1METvalue::m_nRanges
static const unsigned int m_nRanges
Number of ET ranges to encode in.
Definition: L1METvalue.h:52
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::L1METvalue::calcL1METSig
void calcL1METSig(int Ex, int Ey, int SumET, float a, float b, int XEmin, int XEmax, int sqrtTEmin, int sqrtTEmax, float &XS, int &OutOfRange)
Return MET value at floating point precision used in threshold calculation.
Definition: L1METvalue.cxx:115
LVL1::L1METvalue::m_xsXEmax
static const int m_xsXEmax
Limits on inputs to XS LUT.
Definition: L1METvalue.h:59
LVL1::L1METvalue::m_mask
static const unsigned int m_mask
Mask to select Ex/Ey bits.
Definition: L1METvalue.h:54
LVL1::L1METvalue::calcL1MET
void calcL1MET(int Ex, int Ey, int &MET, unsigned int &Range, bool &Overflow)
Return MET value as output by MET LUT (7 bit value + 2 bit range)
Definition: L1METvalue.cxx:79
LVL1::L1METvalue::m_xsSqrtTEmax
static const int m_xsSqrtTEmax
Definition: L1METvalue.h:60
MET
Definition: MET.py:1
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
Range
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
Definition: DetectorDescription/Identifier/Identifier/Range.h:29
LVL1::L1METvalue::m_nBits
static const unsigned int m_nBits
Number of bits in range.
Definition: L1METvalue.h:50
a
TList * a
Definition: liststreamerinfos.cxx:10
LVL1::L1METvalue::m_rangeMask
static const unsigned int m_rangeMask
Definition: L1METvalue.h:57