ATLAS Offline Software
jFexSRJetRoI_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_JFEXSRJETROI_V1_H
6 #define XAODTRIGGER_VERSIONS_JFEXSRJETROI_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 
49  int menuEta() const;
50 
52  void setIsTOB( char value);
53 
58 
60  unsigned int unpackEtTOB() const;
62  unsigned int et() const;
63 
65  unsigned int unpackEtaIndex() const;
67 
69  unsigned int unpackPhiIndex() const;
71 
72  //Saturation flag
73  unsigned int unpackSaturationIndex() const;
75 
76  //Global coords
77  int unpackGlobalEta() const;
78  void setGlobalEta(int value);
79  void setEta(float value);
80 
81  uint unpackGlobalPhi() const;
83  void setPhi(float value);
84 
85  //Et resolution
86  void setResolution(int value);
87 
88  private:
89  //Constants used in converting to ATLAS units
90  static const std::vector<int> s_FWD_EtaPosition;
91  static const std::vector<int> s_FCAL_EtaPosition;
92 
93  // Data locations within word
94  static const int s_resBit = 21;
95  static const int s_etBit = 10;
96  static const int s_etaBit = 5;
97  static const int s_phiBit = 1;
98  static const int s_satBit = 0;
99 
100  //Data masks
101  static const int s_etMask = 0x7ff;
102  static const int s_etaMask = 0x1f;
103  static const int s_phiMask = 0xf;
104  static const int s_resMask = 0x7ff;
105  static const int s_satMask = 0x1;
106 
107  }; // class jFexSRJetRoI_v1
108 
109 } // namespace xAOD
110 // Declare the inheritance of the type:
111 #include "xAODCore/BaseInfo.h"
113 
114 #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:22
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:575
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:446
xAOD::jFexSRJetRoI_v1::s_FCAL_EtaPosition
static const std::vector< int > s_FCAL_EtaPosition
Definition: jFexSRJetRoI_v1.h:91
xAOD::jFexSRJetRoI_v1::globalEta
int globalEta() const
xAOD::jFexSRJetRoI_v1::s_phiMask
static const int s_phiMask
Definition: jFexSRJetRoI_v1.h:103
xAOD::jFexSRJetRoI_v1::jFexSRJetRoI_v1
jFexSRJetRoI_v1()
Default constructor.
Definition: jFexSRJetRoI_v1.cxx:34
BaseInfo.h
athena.value
value
Definition: athena.py:122
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:97
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:98
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:88
xAOD::jFexSRJetRoI_v1::s_resBit
static const int s_resBit
Definition: jFexSRJetRoI_v1.h:94
xAOD::jFexSRJetRoI_v1::tobEt
uint16_t tobEt() const
xAOD::jFexSRJetRoI_v1::s_satMask
static const int s_satMask
Definition: jFexSRJetRoI_v1.h:105
xAOD::jFexSRJetRoI_v1::s_etaBit
static const int s_etaBit
Definition: jFexSRJetRoI_v1.h:96
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:104
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:90
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:102
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:101
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:95
xAOD::jFexSRJetRoI_v1::et
unsigned int et() const
Methods that require combining results or applying scales.
Definition: jFexSRJetRoI_v1.cxx:138