ATLAS Offline Software
Loading...
Searching...
No Matches
jFexMETRoI_v1.h
Go to the documentation of this file.
1//create
2/*
3 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
4*/
5#ifndef XAODTRIGGER_VERSIONS_JFEXMETROI_V1_H
6#define XAODTRIGGER_VERSIONS_JFEXMETROI_V1_H
7
8// System include(s):
9extern "C" {
10# include <stdint.h>
11}
12#include <vector>
13#include <string>
14
15// xAOD include(s):
17namespace xAOD {
18
21
23
24 public:
27
30
35 int tobEx() const;
36 int tobEy() const;
37 uint8_t tobRes() const;
38 uint8_t tobSat() const;
39 int tobEtScale() const;
40
45
46 //Unpack the Met Ex bits from the TOB word in 200 MeV
47 int unpackEx() const;
48 void setTobEx( int value);
49 int Ex() const;
50
51 //Unpack the Met Ey bits from the TOB word in 200 MeV
52 int unpackEy() const;
53 void setTobEy( int value);
54 int Ey() const;
55
56 //Unpack the reserved bits from the TOB word
57 unsigned int unpackRes() const;
58 void setTobRes(uint8_t value);
59
60 //Unpack the saturarion bits from the TOB word
61 unsigned int unpackSat() const;
62 void setTobSat(uint8_t value);
63
64 //Et resolution
65 void setResolution(int value);
66
67 private:
68 //Constants used in converting to ATLAS units
69 static const float s_tobEtScale;
70
71 // Data locations within word
72 static const int s_ResBit = 31;
73 static const int s_Ey_Bit = 16;
74 static const int s_Ex_Bit = 1;
75 static const int s_SatBit = 0;
76
77 //bit to check if MET is negative
78 static const int s_signed_E = 14;
79
80 //Data masks
81 static const int s_E_xMask = 0x7fff;
82 static const int s_E_yMask = 0x7fff;
83 static const int s_ResMask = 0x1;
84 static const int s_SatMask = 0x1;
85
86
87 }; // class jFexMETRoI_v1
88
89} // namespace xAOD
90// Declare the inheritance of the type:
91#include "xAODCore/BaseInfo.h"
93
94#endif //XAODTRIGGER_VERSIONS_JFEXMETROI_V1_H
Base class for elements of a container that can have aux data.
#define SG_BASE(D, B)
Declare that class D derives from class B.
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.
int tobEtScale() const
int unpackEx() const
Raw data words.
static const float s_tobEtScale
unsigned int unpackRes() const
unsigned int unpackSat() const
static const int s_Ex_Bit
int Ey() const
Met Ey in 1 MeV scale (all signs considered)
void setTobEy(int value)
static const int s_ResBit
uint8_t jFexNumber() const
uint32_t tobWord() const
The "raw" 32-bit word describing the object candidate.
void setTobEx(int value)
uint8_t fpgaNumber() const
static const int s_signed_E
uint8_t tobRes() const
static const int s_SatMask
void setTobRes(uint8_t value)
void setjFexNumber(uint8_t jFexNumber)
static const int s_E_xMask
static const int s_SatBit
static const int s_Ey_Bit
static const int s_E_yMask
void setTobSat(uint8_t value)
int Ex() const
Methods that require combining results or applying scales.
uint8_t tobSat() const
void setResolution(int value)
jFexMETRoI_v1()
Default constructor.
static const int s_ResMask
void setTobWord(uint32_t tobWord)
Set the "raw" 32-bit words describing the object candidate.
void setfpgaNumber(uint8_t fpgaNumber)
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setEventNumber uint32_t
void initialize()