ATLAS Offline Software
Loading...
Searching...
No Matches
jFexLRJetRoI_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_JFEXLRJETROI_V1_H
6#define XAODTRIGGER_VERSIONS_JFEXLRJETROI_V1_H
7
8// System include(s):
9extern "C" {
10# include <stdint.h>
11# include <math.h>
12}
13#include <vector>
14#include <string>
15
16// xAOD include(s):
18namespace xAOD {
19
22
24
25 public:
28
30 void initialize(uint8_t jFexNumber, uint8_t fpgaNumber, uint32_t tobWord, char istob, int resolution, float_t eta, float_t phi );
31
36 uint16_t tobEt() 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 int menuEta() const;
49
51 void setIsTOB( char value);
52
57
59 unsigned int unpackEtTOB() const;
60 void setTobEt( uint16_t value);
61 unsigned int et() const;
62
64 unsigned int unpackEtaIndex() const;
66
68 unsigned int unpackPhiIndex() const;
70
71 //Saturation flag
72 unsigned int unpackSaturationIndex() const;
73 void setTobSat(uint8_t value);
74
75 //Global coords
76 int unpackGlobalEta() const;
77 void setGlobalEta(int value);
78 void setEta(float value);
79
80 uint unpackGlobalPhi() const;
81 void setGlobalPhi(uint value);
82 void setPhi(float value);
83
84 //Et resolution
85 void setResolution(int value);
86
87 private:
88 //Constants used in converting to ATLAS units
89 static const std::vector<int> s_FCAL_EtaPosition;
90 static const std::vector<int> s_FWD_EtaPosition;
91
92 // Data locations within word
93 static const int s_resBit = 23;
94 static const int s_etBit = 10;
95 static const int s_etaBit = 5;
96 static const int s_phiBit = 1;
97 static const int s_satBit = 0;
98
99 //Data masks
100 static const int s_etaMask = 0x1f;
101 static const int s_phiMask = 0xf;
102 static const int s_etMask = 0x1fff;
103 static const int s_resMask = 0x7ff;
104 static const int s_satMask = 0x1;
105
106 }; // class jFexLRJetRoI_v1
107
108} // namespace xAOD
109// Declare the inheritance of the type:
110#include "xAODCore/BaseInfo.h"
112
113#endif //XAODTRIGGER_VERSIONS_JFEXLRJETROI_V1_H
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.
unsigned int uint
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.
void setEta(float value)
void setTobLocalEta(uint8_t value)
static const int s_etaMask
unsigned int et() const
Methods that require combining results or applying scales.
void setIsTOB(char value)
Set the isTOB variable (TOB or xTOB)
static const int s_resBit
static const int s_phiBit
void setfpgaNumber(uint8_t fpgaNumber)
void setGlobalPhi(uint value)
void setTobWord(uint32_t tobWord)
Set the "raw" 32-bit words describing the object candidate.
uint8_t fpgaNumber() const
static const int s_satBit
unsigned int unpackPhiIndex() const
Phi coordinates.
uint16_t tobEt() const
static const std::vector< int > s_FWD_EtaPosition
void setResolution(int value)
void setTobEt(uint16_t value)
uint8_t tobSat() const
static const int s_phiMask
void setTobSat(uint8_t value)
jFexLRJetRoI_v1()
Default constructor.
int menuEta() const
the eta index to use for looking up thresholds in the menu
unsigned int unpackEtTOB() const
TOB ET (decoded from TOB, stored for convenience)
uint8_t tobLocalPhi() const
static const int s_etBit
int tobEtScale() const
unsigned int unpackSaturationIndex() const
void setGlobalEta(int value)
uint globalPhi() const
static const int s_etMask
uint8_t jFexNumber() const
static const std::vector< int > s_FCAL_EtaPosition
void setjFexNumber(uint8_t jFexNumber)
uint8_t tobLocalEta() const
void setTobLocalPhi(uint8_t value)
static const int s_satMask
void setPhi(float value)
static const int s_etaBit
static const int s_resMask
unsigned int unpackEtaIndex() const
Eta coordinates.
uint32_t tobWord() const
The "raw" 32-bit word describing the object candidate.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setWord1 uint16_t
setEventNumber uint32_t
void initialize()