ATLAS Offline Software
Loading...
Searching...
No Matches
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
14namespace LVL1 {
15
22
23public:
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
38private:
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
static Double_t a
L1METvalue encoding is used for transmission of ET/Ex/Ey sums from JEM to CMM.
Definition L1METvalue.h:21
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)
void calcL1METQ(int Ex, int Ey, int &METQ, bool &Overflow)
Return MET**2 value at precision used in threshold calculation.
static const unsigned int m_nRanges
Number of ET ranges to encode in.
Definition L1METvalue.h:42
static const int m_xsSqrtTEmax
Definition L1METvalue.h:50
static const int m_xsXEmax
Limits on inputs to XS LUT.
Definition L1METvalue.h:49
static const unsigned int m_mask
Mask to select Ex/Ey bits.
Definition L1METvalue.h:44
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.
static const unsigned int m_valueMask
Masks for integer MET word setting.
Definition L1METvalue.h:46
static const unsigned int m_nBits
Number of bits in range.
Definition L1METvalue.h:40
static const unsigned int m_rangeMask
Definition L1METvalue.h:47
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition MET.py:1