ATLAS Offline Software
jFexTauRoI_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_JFEXTAUROI_V1_H
6 #define XAODTRIGGER_VERSIONS_JFEXTAUROI_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 
22  class jFexTauRoI_v1 : public SG::AuxElement {
23 
24  public:
26  jFexTauRoI_v1();
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;
36  uint16_t tobIso() 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 
48  void setIsTOB( char value);
49 
54 
56  unsigned int unpackEtTOB() const;
58  unsigned int et() const;
59 
61  unsigned int unpackIsoTOB() const;
63  unsigned int iso() const;
64 
66  unsigned int unpackEtaIndex() const;
68 
69 
71  unsigned int unpackPhiIndex() const;
73 
74 
75  //Saturation flag
76  unsigned int unpackSaturationIndex() const;
78 
79 
80  //Global coords
81  int unpackGlobalEta() const;
82  void setGlobalEta(int value);
83  void setEta(float value);
84 
85  uint unpackGlobalPhi() const;
87  void setPhi(float value);
88 
89  //Et resolution
90  void setResolution(int value);
91 
92 
93  private:
94 
95  // Data locations within word
96  static const int s_isoBit = 21;
97  static const int s_etBit = 10;
98  static const int s_etaBit = 5;
99  static const int s_phiBit = 1;
100  static const int s_satBit = 0;
101 
102  //Data masks
103  static const int s_etaMask = 0x1f;
104  static const int s_phiMask = 0xf;
105  static const int s_etMask = 0x7ff;
106  static const int s_isoMask = 0x7ff;
107  static const int s_satMask = 0x1;
108 
109  }; // class jFexTauRoI_v1
110 
111 } // namespace xAOD
112 // Declare the inheritance of the type:
113 #include "xAODCore/BaseInfo.h"
115 
116 #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:22
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:105
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:575
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:446
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:96
athena.value
value
Definition: athena.py:122
xAOD::jFexTauRoI_v1::s_etaMask
static const int s_etaMask
Definition: jFexTauRoI_v1.h:103
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:104
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:106
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:88
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:107
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:100
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:99
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:97
xAOD::jFexTauRoI_v1::s_etaBit
static const int s_etaBit
Definition: jFexTauRoI_v1.h:98
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.