ATLAS Offline Software
jFexLRJetRoI_v1.h
Go to the documentation of this file.
1 //create
2 /*
3  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
4 */
5 #ifndef XAODTRIGGER_VERSIONS_JFEXLRJETROI_V1_H
6 #define XAODTRIGGER_VERSIONS_JFEXLRJETROI_V1_H
7 
8 // System include(s):
9 extern "C" {
10 # include <stdint.h>
11 }
12 #include <vector>
13 #include <string>
14 
15 // xAOD include(s):
17 namespace xAOD {
18 
21 
23 
24  public:
27 
29  void initialize(uint8_t jFexNumber, uint8_t fpgaNumber, uint32_t tobWord, char istob, int resolution, float_t eta, float_t phi );
30 
32  uint32_t tobWord() const;
35  uint16_t tobEt() const;
37  uint8_t tobLocalPhi() const;
38  uint8_t tobSat() const;
39  int globalEta() const;
40  uint globalPhi() const;
41  float eta() const;
42  float phi() const;
43  int tobEtScale() const;
44  char isTOB() const;
45 
47  int menuEta() const;
48 
50  void setIsTOB( char value);
51 
56 
58  unsigned int unpackEtTOB() const;
60  unsigned int et() const;
61 
63  unsigned int unpackEtaIndex() const;
65 
67  unsigned int unpackPhiIndex() const;
69 
70  //Saturation flag
71  unsigned int unpackSaturationIndex() const;
73 
74  //Global coords
75  int unpackGlobalEta() const;
76  void setGlobalEta(int value);
77  void setEta(float value);
78 
79  uint unpackGlobalPhi() const;
81  void setPhi(float value);
82 
83  //Et resolution
84  void setResolution(int value);
85 
86  private:
87  //Constants used in converting to ATLAS units
88  static const std::vector<int> s_FCAL_EtaPosition;
89  static const std::vector<int> s_FWD_EtaPosition;
90 
91  // Data locations within word
92  static const int s_resBit = 23;
93  static const int s_etBit = 10;
94  static const int s_etaBit = 5;
95  static const int s_phiBit = 1;
96  static const int s_satBit = 0;
97 
98  //Data masks
99  static const int s_etaMask = 0x1f;
100  static const int s_phiMask = 0xf;
101  static const int s_etMask = 0x1fff;
102  static const int s_resMask = 0x7ff;
103  static const int s_satMask = 0x1;
104 
105  }; // class jFexLRJetRoI_v1
106 
107 } // namespace xAOD
108 // Declare the inheritance of the type:
109 #include "xAODCore/BaseInfo.h"
111 
112 #endif //XAODTRIGGER_VERSIONS_JFEXLRJETROI_V1_H
xAOD::jFexLRJetRoI_v1::s_satMask
static const int s_satMask
Definition: jFexLRJetRoI_v1.h:103
xAOD::jFexLRJetRoI_v1::setTobSat
void setTobSat(uint8_t value)
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::jFexLRJetRoI_v1::eta
float eta() const
xAOD::jFexLRJetRoI_v1::setTobWord
void setTobWord(uint32_t tobWord)
Set the "raw" 32-bit words describing the object candidate.
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:472
xAOD::jFexLRJetRoI_v1::unpackSaturationIndex
unsigned int unpackSaturationIndex() const
Definition: jFexLRJetRoI_v1.cxx:132
xAOD::jFexLRJetRoI_v1::setTobLocalPhi
void setTobLocalPhi(uint8_t value)
xAOD::jFexLRJetRoI_v1::s_etaMask
static const int s_etaMask
Definition: jFexLRJetRoI_v1.h:99
BaseInfo.h
xAOD::jFexLRJetRoI_v1::jFexNumber
uint8_t jFexNumber() const
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::jFexLRJetRoI_v1::unpackEtaIndex
unsigned int unpackEtaIndex() const
Eta coordinates.
Definition: jFexLRJetRoI_v1.cxx:123
xAOD::jFexLRJetRoI_v1::et
unsigned int et() const
Methods that require combining results or applying scales.
Definition: jFexLRJetRoI_v1.cxx:139
xAOD::jFexLRJetRoI_v1::s_FCAL_EtaPosition
static const std::vector< int > s_FCAL_EtaPosition
Definition: jFexLRJetRoI_v1.h:88
Dedxcorrection::resolution
double resolution[nGasTypes][nParametersResolution]
Definition: TRT_ToT_Corrections.h:46
xAOD::jFexLRJetRoI_v1::s_phiMask
static const int s_phiMask
Definition: jFexLRJetRoI_v1.h:100
xAOD::jFexLRJetRoI_v1::setEta
void setEta(float value)
xAOD::jFexLRJetRoI_v1::setResolution
void setResolution(int value)
xAOD::jFexLRJetRoI_v1::setjFexNumber
void setjFexNumber(uint8_t jFexNumber)
xAOD::jFexLRJetRoI_v1::setTobLocalEta
void setTobLocalEta(uint8_t value)
xAOD::jFexLRJetRoI_v1::isTOB
char isTOB() const
xAOD::jFexLRJetRoI_v1::s_resMask
static const int s_resMask
Definition: jFexLRJetRoI_v1.h:102
xAOD::jFexLRJetRoI_v1::s_FWD_EtaPosition
static const std::vector< int > s_FWD_EtaPosition
Definition: jFexLRJetRoI_v1.h:89
xAOD::jFexLRJetRoI_v1::s_satBit
static const int s_satBit
Definition: jFexLRJetRoI_v1.h:96
uint
unsigned int uint
Definition: LArOFPhaseFill.cxx:20
xAOD::jFexLRJetRoI_v1::jFexLRJetRoI_v1
jFexLRJetRoI_v1()
Default constructor.
Definition: jFexLRJetRoI_v1.cxx:37
xAOD::jFexLRJetRoI_v1
Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.
Definition: jFexLRJetRoI_v1.h:22
xAOD::jFexLRJetRoI_v1::tobWord
uint32_t tobWord() const
The "raw" 32-bit word describing the object candidate.
xAOD::jFexLRJetRoI_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: jFexLRJetRoI_v1.cxx:40
xAOD::jFexLRJetRoI_v1::setfpgaNumber
void setfpgaNumber(uint8_t fpgaNumber)
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
xAOD::jFexLRJetRoI_v1::setPhi
void setPhi(float value)
xAOD::jFexLRJetRoI_v1::globalEta
int globalEta() const
xAOD::jFexLRJetRoI_v1::tobEt
uint16_t tobEt() const
xAOD::jFexLRJetRoI_v1::globalPhi
uint globalPhi() const
xAOD::jFexLRJetRoI_v1::tobLocalEta
uint8_t tobLocalEta() const
SG_BASE
SG_BASE(xAOD::jFexLRJetRoI_v1, SG::AuxElement)
xAOD::jFexLRJetRoI_v1::tobEtScale
int tobEtScale() const
xAOD::jFexLRJetRoI_v1::s_etaBit
static const int s_etaBit
Definition: jFexLRJetRoI_v1.h:94
xAOD::jFexLRJetRoI_v1::s_etBit
static const int s_etBit
Definition: jFexLRJetRoI_v1.h:93
xAOD::jFexLRJetRoI_v1::tobLocalPhi
uint8_t tobLocalPhi() const
xAOD::jFexLRJetRoI_v1::s_etMask
static const int s_etMask
Definition: jFexLRJetRoI_v1.h:101
xAOD::jFexLRJetRoI_v1::unpackGlobalEta
int unpackGlobalEta() const
Definition: jFexLRJetRoI_v1.cxx:146
xAOD::jFexLRJetRoI_v1::unpackEtTOB
unsigned int unpackEtTOB() const
TOB ET (decoded from TOB, stored for convenience)
Definition: jFexLRJetRoI_v1.cxx:116
xAOD::jFexLRJetRoI_v1::setGlobalPhi
void setGlobalPhi(uint value)
xAOD::jFexLRJetRoI_v1::s_resBit
static const int s_resBit
Definition: jFexLRJetRoI_v1.h:92
xAOD::jFexLRJetRoI_v1::phi
float phi() const
xAOD::jFexLRJetRoI_v1::unpackGlobalPhi
uint unpackGlobalPhi() const
Definition: jFexLRJetRoI_v1.cxx:159
xAOD::jFexLRJetRoI_v1::setIsTOB
void setIsTOB(char value)
Set the isTOB variable (TOB or xTOB)
xAOD::jFexLRJetRoI_v1::setGlobalEta
void setGlobalEta(int value)
xAOD::jFexLRJetRoI_v1::setTobEt
void setTobEt(uint16_t value)
xAOD::jFexLRJetRoI_v1::tobSat
uint8_t tobSat() const
xAOD::jFexLRJetRoI_v1::menuEta
int menuEta() const
the eta index to use for looking up thresholds in the menu
Definition: jFexLRJetRoI_v1.cxx:59
xAOD::jFexLRJetRoI_v1::s_phiBit
static const int s_phiBit
Definition: jFexLRJetRoI_v1.h:95
xAOD::jFexLRJetRoI_v1::fpgaNumber
uint8_t fpgaNumber() const
xAOD::jFexLRJetRoI_v1::unpackPhiIndex
unsigned int unpackPhiIndex() const
Phi coordinates.
Definition: jFexLRJetRoI_v1.cxx:127
AuxElement.h
Base class for elements of a container that can have aux data.