ATLAS Offline Software
Loading...
Searching...
No Matches
gFexJetRoI_v1.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef XAODTRIGGER_VERSIONS_GFEXJETROI_V1_H
8#define XAODTRIGGER_VERSIONS_GFEXJETROI_V1_H
9
10// System include(s):
11extern "C" {
12# include <stdint.h>
13}
14#include <vector>
15#include <string>
16
17// xAOD include(s):
19
20namespace xAOD {
21
24
26
27 public:
30
33
36 gRho = 0,
39 gJet = 3,
41 };
42
44 uint32_t word() const;
46 void setWord( uint32_t value );
47
49 int menuEta() const;
50
51 int tobEtScale() const;
53 void setScale( int value );
54
57 void setTobEt( int16_t value);
58 int16_t unpackEt( ) const;
59 float et() const;
60
62 uint8_t iEta() const;
63 void setEta( uint8_t value);
64 unsigned int unpackEtaIndex( ) const;
65 float eta() const;
66 float etaMin() const;
67 float etaMax() const;
68
70 uint8_t iPhi() const;
71 void setPhi( uint8_t value);
72 unsigned int unpackPhiIndex( ) const;
73 float phi_gFex() const;
74 float phiMin_gFex() const;
75 float phiMax_gFex() const;
76
77 float phi() const;
78 float phiMin() const;
79 float phiMax() const;
80
81 int iPhiTopo() const;
82
84 uint8_t status() const;
85 void setStatus( uint8_t value ) ;
86 unsigned int unpackStatus( ) const;
89 void setSaturated( uint8_t value ) ;
90 unsigned int unpackSaturated( ) const;
91
92 int gFexType () const;
93 void setgFexType ( int type) ;
94 int unpackType( ) const;
96 bool isgBlockLead() const;
97 //void setIsgBlockLead( char value);
98 bool isgBlockSub() const;
99 //void setIsgBlockSub( char value);
100 bool isgJet() const;
101 //void setIsgJet( char value);
102 bool isgRho() const;
103
104
105
106
107 private:
108
109
111 static const float s_PhiWidth;
112 static const float s_PhiWidthFR;
113 static const std::vector<float> s_EtaEdge;
114 static const std::vector<float> s_EtaCenter;
115
116
121
122 // Data locations within word
123 static const int s_saturBit = 31;
124 static const int s_phiBit = 26;
125 static const int s_etaBit = 20;
126 static const int s_etBit = 8;
127 static const int s_statusBit = 7;
128 static const int s_resBit = 5;
129 static const int s_tobIDBit = 0;
130
131 // Data masks
132 static const int s_saturMask = 0x1;
133 static const int s_phiMask = 0x1f;
134 static const int s_etaMask = 0x3f;
135 static const int s_etMask = 0xfff;
136 static const int s_statusMask = 0x1;
137 static const int s_resMask = 0x3;
138 static const int s_tobIDMask = 0x1f;
139
140 }; // class gFexJetRoI_v1
141
142} // namespace xAOD
143
144// Declare the inheritance of the type:
145#include "xAODCore/BaseInfo.h"
147
148#endif // XAODTRIGGER_VERSIONS_GFEXJETROI_V1_H
149
Base class for elements of a container that can have aux data.
#define SG_BASE(D, B)
Declare that class D derives from class B.
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
Class describing properties of a LVL1 gFEX jet Trigger Object (TOB) in the xAOD format.
float phi() const
High value of phi corresponding to phi index (using gFex convention, phi in [0, 2pi]).
float phiMin() const
Central value of phi corresponding to phi index (using ATLAS convention, phi in [-pi,...
void setScale(int value)
Set the "raw" 32-bit words describing the object candidate.
static const int s_saturMask
static const int s_tobIDMask
static const int s_tobIDBit
void setPhi(uint8_t value)
Getter for integer phi index (0-32) --> check numbers for gFEX.
static const float s_PhiWidth
Constants used in converting to ATLAS units.
float phi_gFex() const
retrieves the phi index from the 32-bit word
static const int s_etBit
void setgFexType(int type)
float etaMin() const
Floating point.
uint8_t status() const
phi index in the range used by L1Topo (0->127)
float etaMax() const
Floating point.
void setTobEt(int16_t value)
getter for integer ET on TOB scale (3.2 GeV/count)
unsigned int unpackPhiIndex() const
Setter for the above.
uint8_t iEta() const
floating point value (GeV, TOB scale)
unsigned int unpackEtaIndex() const
setter for the above
int menuEta() const
the eta index to use for looking up thresholds in the menu
bool isgBlockLead() const
Identification of object type with flags.
void setSaturated(uint8_t value)
int16_t gFexTobEt() const
TOB ET (decoded from TOB, stored for convenience)
uint8_t iPhi() const
Floating point.
int iPhiTopo() const
High value of phi corresponding to phi index (using ATLAS convention, phi in [-pi,...
static const std::vector< float > s_EtaEdge
uint32_t word() const
The "raw" 32-bit word describing the object candidate.
void setEta(uint8_t value)
getter for integer eta index (0-63)
int tobEtScale() const
static const std::vector< float > s_EtaCenter
static const int s_etaBit
unsigned int unpackStatus() const
float eta() const
retrieves the Eta index from the 32-bit word
void setWord(uint32_t value)
Set the "raw" 32-bit words describing the object candidate.
float et() const
retrieves the Et index from the 32-bit word
static const int s_phiMask
void setStatus(uint8_t value)
ObjectType
Object types.
@ gBlockLead
This object is a TOB (32 bit word)
@ gBlockSub
This object is a TOB (32 bit word)
@ gJet
This object is a TOB (32 bit word)
unsigned int unpackSaturated() const
static const int s_resBit
static const int s_statusMask
int16_t unpackEt() const
setter for the above
gFexJetRoI_v1()
Default constructor.
float phiMax_gFex() const
Low value of phi corresponding to phi index (using gFex convention, phi in [0, 2pi]).
static const int s_saturBit
Constants used in decoding TOB words For TOB word format changes these can be replaced by arrays in t...
static const int s_statusBit
uint8_t saturated() const
retrieves the Status info from the 32-bit word
static const int s_resMask
static const int s_etMask
static const int s_etaMask
int gFexType() const
retrieves the Saturated info from the 32-bit word
static const float s_PhiWidthFR
float phiMin_gFex() const
Central value of phi corresponding to phi index (using gFex convention, phi in [0,...
static const int s_phiBit
float phiMax() const
Low value of phi corresponding to phi index (using ATLAS convention, phi in [-pi, pi]).
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setScaleOne setStatusOne setSaturated int16_t
setEventNumber uint32_t
void initialize()