ATLAS Offline Software
jFexSRJetRoI_v1.h
Go to the documentation of this file.
1 //create
2 /*
3  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
4 */
5 #ifndef XAODTRIGGER_VERSIONS_JFEXSRJETROI_V1_H
6 #define XAODTRIGGER_VERSIONS_JFEXSRJETROI_V1_H
7 
8 // System include(s):
9 extern "C" {
10 # include <stdint.h>
11 # include <math.h>
12 }
13 #include <vector>
14 #include <string>
15 
16 // xAOD include(s):
18 namespace xAOD {
19 
22 
24 
25  public:
28 
30  void initialize(uint8_t jFexNumber, uint8_t fpgaNumber, uint32_t tobWord, char istob, int resolution, float_t eta, float_t phi );
31 
33  uint32_t tobWord() const;
36  uint16_t tobEt() const;
38  uint8_t tobLocalPhi() const;
39  uint8_t tobSat() const;
40  int globalEta() const;
41  uint globalPhi() const;
42  float eta() const;
43  float phi() const;
44  int tobEtScale() const;
45  char isTOB() const;
46 
50  int menuEta() const;
51 
53  void setIsTOB( char value);
54 
59 
61  unsigned int unpackEtTOB() const;
63  unsigned int et() const;
64 
66  unsigned int unpackEtaIndex() const;
68 
70  unsigned int unpackPhiIndex() const;
72 
73  //Saturation flag
74  unsigned int unpackSaturationIndex() const;
76 
77  //Global coords
78  int unpackGlobalEta() const;
79  void setGlobalEta(int value);
80  void setEta(float value);
81 
82  uint unpackGlobalPhi() const;
84  void setPhi(float value);
85 
86  //Et resolution
87  void setResolution(int value);
88 
89  private:
90  //Constants used in converting to ATLAS units
91  static const std::vector<int> s_FWD_EtaPosition;
92  static const std::vector<int> s_FCAL_EtaPosition;
93 
94  // Data locations within word
95  static const int s_resBit = 21;
96  static const int s_etBit = 10;
97  static const int s_etaBit = 5;
98  static const int s_phiBit = 1;
99  static const int s_satBit = 0;
100 
101  //Data masks
102  static const int s_etMask = 0x7ff;
103  static const int s_etaMask = 0x1f;
104  static const int s_phiMask = 0xf;
105  static const int s_resMask = 0x7ff;
106  static const int s_satMask = 0x1;
107 
108  }; // class jFexSRJetRoI_v1
109 
110 } // namespace xAOD
111 // Declare the inheritance of the type:
112 #include "xAODCore/BaseInfo.h"
114 
115 #endif //XAODTRIGGER_VERSIONS_JFEXSRJETROI_V1_H
xAOD::jFexSRJetRoI_v1::unpackEtaIndex
unsigned int unpackEtaIndex() const
Eta coordinates.
Definition: jFexSRJetRoI_v1.cxx:122
xAOD::jFexSRJetRoI_v1::setIsTOB
void setIsTOB(char value)
Set the isTOB variable (TOB or xTOB)
xAOD::jFexSRJetRoI_v1
Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.
Definition: jFexSRJetRoI_v1.h:23
xAOD::jFexSRJetRoI_v1::setTobSat
void setTobSat(uint8_t value)
xAOD::jFexSRJetRoI_v1::setjFexNumber
void setjFexNumber(uint8_t jFexNumber)
xAOD::jFexSRJetRoI_v1::setTobEt
void setTobEt(uint16_t value)
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::jFexSRJetRoI_v1::isTOB
char isTOB() const
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::jFexSRJetRoI_v1::unpackEtTOB
unsigned int unpackEtTOB() const
TOB ET (decoded from TOB, stored for convenience)
Definition: jFexSRJetRoI_v1.cxx:115
xAOD::jFexSRJetRoI_v1::setResolution
void setResolution(int value)
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
xAOD::jFexSRJetRoI_v1::s_FCAL_EtaPosition
static const std::vector< int > s_FCAL_EtaPosition
Definition: jFexSRJetRoI_v1.h:92
xAOD::jFexSRJetRoI_v1::globalEta
int globalEta() const
xAOD::jFexSRJetRoI_v1::s_phiMask
static const int s_phiMask
Definition: jFexSRJetRoI_v1.h:104
xAOD::jFexSRJetRoI_v1::jFexSRJetRoI_v1
jFexSRJetRoI_v1()
Default constructor.
Definition: jFexSRJetRoI_v1.cxx:34
BaseInfo.h
athena.value
value
Definition: athena.py:124
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::jFexSRJetRoI_v1::setGlobalPhi
void setGlobalPhi(uint value)
xAOD::jFexSRJetRoI_v1::eta
float eta() const
xAOD::jFexSRJetRoI_v1::phi
float phi() const
xAOD::jFexSRJetRoI_v1::tobWord
uint32_t tobWord() const
The "raw" 32-bit word describing the object candidate.
Dedxcorrection::resolution
double resolution[nGasTypes][nParametersResolution]
Definition: TRT_ToT_Corrections.h:46
xAOD::jFexSRJetRoI_v1::setfpgaNumber
void setfpgaNumber(uint8_t fpgaNumber)
xAOD::jFexSRJetRoI_v1::s_phiBit
static const int s_phiBit
Definition: jFexSRJetRoI_v1.h:98
xAOD::jFexSRJetRoI_v1::setTobWord
void setTobWord(uint32_t tobWord)
Set the "raw" 32-bit words describing the object candidate.
uint
unsigned int uint
Definition: LArOFPhaseFill.cxx:20
xAOD::jFexSRJetRoI_v1::s_satBit
static const int s_satBit
Definition: jFexSRJetRoI_v1.h:99
xAOD::jFexSRJetRoI_v1::tobEtScale
int tobEtScale() const
xAOD::jFexSRJetRoI_v1::menuEta
int menuEta() const
the eta index to use for looking up thresholds in the menu the current jFex fw only supports symmetri...
Definition: jFexSRJetRoI_v1.cxx:58
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
xAOD::jFexSRJetRoI_v1::s_resBit
static const int s_resBit
Definition: jFexSRJetRoI_v1.h:95
xAOD::jFexSRJetRoI_v1::tobEt
uint16_t tobEt() const
xAOD::jFexSRJetRoI_v1::s_satMask
static const int s_satMask
Definition: jFexSRJetRoI_v1.h:106
xAOD::jFexSRJetRoI_v1::s_etaBit
static const int s_etaBit
Definition: jFexSRJetRoI_v1.h:97
xAOD::jFexSRJetRoI_v1::globalPhi
uint globalPhi() const
xAOD::jFexSRJetRoI_v1::setTobLocalEta
void setTobLocalEta(uint8_t value)
xAOD::jFexSRJetRoI_v1::unpackPhiIndex
unsigned int unpackPhiIndex() const
Phi coordinates.
Definition: jFexSRJetRoI_v1.cxx:126
xAOD::jFexSRJetRoI_v1::unpackSaturationIndex
unsigned int unpackSaturationIndex() const
Definition: jFexSRJetRoI_v1.cxx:131
xAOD::jFexSRJetRoI_v1::tobSat
uint8_t tobSat() const
xAOD::jFexSRJetRoI_v1::unpackGlobalPhi
uint unpackGlobalPhi() const
Definition: jFexSRJetRoI_v1.cxx:182
xAOD::jFexSRJetRoI_v1::setEta
void setEta(float value)
xAOD::jFexSRJetRoI_v1::s_resMask
static const int s_resMask
Definition: jFexSRJetRoI_v1.h:105
xAOD::jFexSRJetRoI_v1::unpackGlobalEta
int unpackGlobalEta() const
Definition: jFexSRJetRoI_v1.cxx:145
SG_BASE
SG_BASE(xAOD::jFexSRJetRoI_v1, SG::AuxElement)
xAOD::jFexSRJetRoI_v1::initialize
void initialize(uint8_t jFexNumber, uint8_t fpgaNumber, uint32_t tobWord, char istob, int resolution, float_t eta, float_t phi)
In future initialze the EDM.
Definition: jFexSRJetRoI_v1.cxx:38
xAOD::jFexSRJetRoI_v1::s_FWD_EtaPosition
static const std::vector< int > s_FWD_EtaPosition
Definition: jFexSRJetRoI_v1.h:91
xAOD::jFexSRJetRoI_v1::setTobLocalPhi
void setTobLocalPhi(uint8_t value)
xAOD::jFexSRJetRoI_v1::setPhi
void setPhi(float value)
xAOD::jFexSRJetRoI_v1::s_etaMask
static const int s_etaMask
Definition: jFexSRJetRoI_v1.h:103
xAOD::jFexSRJetRoI_v1::setGlobalEta
void setGlobalEta(int value)
xAOD::jFexSRJetRoI_v1::tobLocalEta
uint8_t tobLocalEta() const
xAOD::jFexSRJetRoI_v1::fpgaNumber
uint8_t fpgaNumber() const
xAOD::jFexSRJetRoI_v1::s_etMask
static const int s_etMask
Definition: jFexSRJetRoI_v1.h:102
xAOD::jFexSRJetRoI_v1::tobLocalPhi
uint8_t tobLocalPhi() const
xAOD::jFexSRJetRoI_v1::jFexNumber
uint8_t jFexNumber() const
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::jFexSRJetRoI_v1::s_etBit
static const int s_etBit
Definition: jFexSRJetRoI_v1.h:96
xAOD::jFexSRJetRoI_v1::et
unsigned int et() const
Methods that require combining results or applying scales.
Definition: jFexSRJetRoI_v1.cxx:138