ATLAS Offline Software
jFexTauRoI_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_JFEXTAUROI_V1_H
6 #define XAODTRIGGER_VERSIONS_JFEXTAUROI_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 
23  class jFexTauRoI_v1 : public SG::AuxElement {
24 
25  public:
27  jFexTauRoI_v1();
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;
37  uint16_t tobIso() const;
39  uint8_t tobLocalPhi() const;
40  uint8_t tobSat() const;
41  int globalEta() const;
42  uint globalPhi() const;
43  float eta() const;
44  float phi() const;
45  int tobEtScale() const;
46  char isTOB() const;
47 
49  void setIsTOB( char value);
50 
55 
57  unsigned int unpackEtTOB() const;
59  unsigned int et() const;
60 
62  unsigned int unpackIsoTOB() const;
64  unsigned int iso() const;
65 
67  unsigned int unpackEtaIndex() const;
69 
70 
72  unsigned int unpackPhiIndex() const;
74 
75 
76  //Saturation flag
77  unsigned int unpackSaturationIndex() const;
79 
80 
81  //Global coords
82  int unpackGlobalEta() const;
83  void setGlobalEta(int value);
84  void setEta(float value);
85 
86  uint unpackGlobalPhi() const;
88  void setPhi(float value);
89 
90  //Et resolution
91  void setResolution(int value);
92 
93 
94  private:
95 
96  // Data locations within word
97  static const int s_isoBit = 21;
98  static const int s_etBit = 10;
99  static const int s_etaBit = 5;
100  static const int s_phiBit = 1;
101  static const int s_satBit = 0;
102 
103  //Data masks
104  static const int s_etaMask = 0x1f;
105  static const int s_phiMask = 0xf;
106  static const int s_etMask = 0x7ff;
107  static const int s_isoMask = 0x7ff;
108  static const int s_satMask = 0x1;
109 
110  }; // class jFexTauRoI_v1
111 
112 } // namespace xAOD
113 // Declare the inheritance of the type:
114 #include "xAODCore/BaseInfo.h"
116 
117 #endif //XAODTRIGGER_VERSIONS_JFEXTAUROI_V1_H
xAOD::jFexTauRoI_v1
Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.
Definition: jFexTauRoI_v1.h:23
xAOD::jFexTauRoI_v1::setResolution
void setResolution(int value)
xAOD::jFexTauRoI_v1::setTobEt
void setTobEt(uint16_t value)
xAOD::jFexTauRoI_v1::setGlobalEta
void setGlobalEta(int value)
xAOD::jFexTauRoI_v1::s_etMask
static const int s_etMask
Definition: jFexTauRoI_v1.h:106
xAOD::jFexTauRoI_v1::unpackPhiIndex
unsigned int unpackPhiIndex() const
Phi coordinates.
Definition: jFexTauRoI_v1.cxx:102
xAOD::jFexTauRoI_v1::isTOB
char isTOB() const
xAOD::jFexTauRoI_v1::eta
float eta() const
xAOD::jFexTauRoI_v1::jFexNumber
uint8_t jFexNumber() const
xAOD::jFexTauRoI_v1::tobLocalEta
uint8_t tobLocalEta() const
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::jFexTauRoI_v1::setTobWord
void setTobWord(uint32_t tobWord)
Set the "raw" 32-bit words describing the object candidate.
xAOD::jFexTauRoI_v1::unpackSaturationIndex
unsigned int unpackSaturationIndex() const
Definition: jFexTauRoI_v1.cxx:107
xAOD::jFexTauRoI_v1::setfpgaNumber
void setfpgaNumber(uint8_t fpgaNumber)
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:483
xAOD::jFexTauRoI_v1::globalPhi
uint globalPhi() const
BaseInfo.h
xAOD::jFexTauRoI_v1::tobIso
uint16_t tobIso() const
xAOD::jFexTauRoI_v1::s_isoBit
static const int s_isoBit
Definition: jFexTauRoI_v1.h:97
athena.value
value
Definition: athena.py:124
xAOD::jFexTauRoI_v1::s_etaMask
static const int s_etaMask
Definition: jFexTauRoI_v1.h:104
xAOD::jFexTauRoI_v1::globalEta
int globalEta() const
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
SG_BASE
SG_BASE(xAOD::jFexTauRoI_v1, SG::AuxElement)
xAOD::jFexTauRoI_v1::s_phiMask
static const int s_phiMask
Definition: jFexTauRoI_v1.h:105
xAOD::jFexTauRoI_v1::et
unsigned int et() const
Methods that require combining results or applying scales.
Definition: jFexTauRoI_v1.cxx:114
xAOD::jFexTauRoI_v1::jFexTauRoI_v1
jFexTauRoI_v1()
Default constructor.
Definition: jFexTauRoI_v1.cxx:18
Dedxcorrection::resolution
double resolution[nGasTypes][nParametersResolution]
Definition: TRT_ToT_Corrections.h:46
xAOD::jFexTauRoI_v1::unpackGlobalPhi
uint unpackGlobalPhi() const
Definition: jFexTauRoI_v1.cxx:141
xAOD::jFexTauRoI_v1::unpackIsoTOB
unsigned int unpackIsoTOB() const
TOB Isolation (decoded from TOB, stored for convenience)
Definition: jFexTauRoI_v1.cxx:93
xAOD::jFexTauRoI_v1::s_isoMask
static const int s_isoMask
Definition: jFexTauRoI_v1.h:107
xAOD::jFexTauRoI_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: jFexTauRoI_v1.cxx:21
uint
unsigned int uint
Definition: LArOFPhaseFill.cxx:20
xAOD::jFexTauRoI_v1::setGlobalPhi
void setGlobalPhi(uint value)
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
xAOD::jFexTauRoI_v1::tobEt
uint16_t tobEt() const
xAOD::jFexTauRoI_v1::fpgaNumber
uint8_t fpgaNumber() const
xAOD::jFexTauRoI_v1::setTobLocalPhi
void setTobLocalPhi(uint8_t value)
xAOD::jFexTauRoI_v1::setIsTOB
void setIsTOB(char value)
Set the isTOB variable (TOB or xTOB)
xAOD::jFexTauRoI_v1::tobWord
uint32_t tobWord() const
The "raw" 32-bit word describing the object candidate.
xAOD::jFexTauRoI_v1::unpackGlobalEta
int unpackGlobalEta() const
As the Trigger towers are 1x1 in Eta - Phi coords (x10)
Definition: jFexTauRoI_v1.cxx:128
xAOD::jFexTauRoI_v1::phi
float phi() const
xAOD::jFexTauRoI_v1::tobEtScale
int tobEtScale() const
xAOD::jFexTauRoI_v1::setjFexNumber
void setjFexNumber(uint8_t jFexNumber)
xAOD::jFexTauRoI_v1::s_satMask
static const int s_satMask
Definition: jFexTauRoI_v1.h:108
xAOD::jFexTauRoI_v1::unpackEtaIndex
unsigned int unpackEtaIndex() const
Eta coordinates.
Definition: jFexTauRoI_v1.cxx:98
xAOD::jFexTauRoI_v1::setTobIso
void setTobIso(uint16_t value)
xAOD::jFexTauRoI_v1::iso
unsigned int iso() const
Iso on TOB scale.
Definition: jFexTauRoI_v1.cxx:120
xAOD::jFexTauRoI_v1::setTobSat
void setTobSat(uint8_t value)
xAOD::jFexTauRoI_v1::s_satBit
static const int s_satBit
Definition: jFexTauRoI_v1.h:101
xAOD::jFexTauRoI_v1::unpackEtTOB
unsigned int unpackEtTOB() const
TOB ET (decoded from TOB, stored for convenience)
Definition: jFexTauRoI_v1.cxx:88
xAOD::jFexTauRoI_v1::s_phiBit
static const int s_phiBit
Definition: jFexTauRoI_v1.h:100
xAOD::jFexTauRoI_v1::setPhi
void setPhi(float value)
xAOD::jFexTauRoI_v1::tobLocalPhi
uint8_t tobLocalPhi() const
xAOD::jFexTauRoI_v1::setEta
void setEta(float value)
xAOD::jFexTauRoI_v1::s_etBit
static const int s_etBit
Definition: jFexTauRoI_v1.h:98
xAOD::jFexTauRoI_v1::s_etaBit
static const int s_etaBit
Definition: jFexTauRoI_v1.h:99
xAOD::jFexTauRoI_v1::setTobLocalEta
void setTobLocalEta(uint8_t value)
xAOD::jFexTauRoI_v1::tobSat
uint8_t tobSat() const
AuxElement.h
Base class for elements of a container that can have aux data.