ATLAS Offline Software
Loading...
Searching...
No Matches
jFexSRJetRoI_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_JFEXSRJETROI_V1_H
6#define XAODTRIGGER_VERSIONS_JFEXSRJETROI_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
50 int menuEta() const;
51
53 void setIsTOB( char value);
54
59
61 unsigned int unpackEtTOB() const;
62 void setTobEt( uint16_t value);
63 unsigned int et() const;
64
66 unsigned int unpackEtaIndex() const;
68
70 unsigned int unpackPhiIndex() const;
72
73 //Saturation flag
74 unsigned int unpackSaturationIndex() const;
75 void setTobSat(uint8_t value);
76
77 //Global coords
78 int unpackGlobalEta() const;
79 void setGlobalEta(int value);
80 void setEta(float value);
81
82 uint unpackGlobalPhi() const;
83 void setGlobalPhi(uint value);
84 void setPhi(float value);
85
86 //Et resolution
87 void setResolution(int value);
88
89 private:
90 //Constants used in converting to ATLAS units
91 static const std::vector<int> s_FWD_EtaPosition;
92 static const std::vector<int> s_FCAL_EtaPosition;
93
94 // Data locations within word
95 static const int s_resBit = 21;
96 static const int s_etBit = 10;
97 static const int s_etaBit = 5;
98 static const int s_phiBit = 1;
99 static const int s_satBit = 0;
100
101 //Data masks
102 static const int s_etMask = 0x7ff;
103 static const int s_etaMask = 0x1f;
104 static const int s_phiMask = 0xf;
105 static const int s_resMask = 0x7ff;
106 static const int s_satMask = 0x1;
107
108 }; // class jFexSRJetRoI_v1
109
110} // namespace xAOD
111// Declare the inheritance of the type:
112#include "xAODCore/BaseInfo.h"
114
115#endif //XAODTRIGGER_VERSIONS_JFEXSRJETROI_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.
uint8_t fpgaNumber() const
void setResolution(int value)
static const int s_etBit
int menuEta() const
the eta index to use for looking up thresholds in the menu the current jFex fw only supports symmetri...
void setPhi(float value)
jFexSRJetRoI_v1()
Default constructor.
uint16_t tobEt() const
uint8_t tobLocalEta() const
static const std::vector< int > s_FCAL_EtaPosition
static const int s_satMask
void setIsTOB(char value)
Set the isTOB variable (TOB or xTOB)
uint32_t tobWord() const
The "raw" 32-bit word describing the object candidate.
void setEta(float value)
void setTobSat(uint8_t value)
uint8_t jFexNumber() const
void setjFexNumber(uint8_t jFexNumber)
void setTobLocalEta(uint8_t value)
static const int s_resBit
static const int s_phiBit
unsigned int et() const
Methods that require combining results or applying scales.
static const int s_satBit
void setfpgaNumber(uint8_t fpgaNumber)
unsigned int unpackSaturationIndex() const
static const std::vector< int > s_FWD_EtaPosition
void setGlobalEta(int value)
void setTobWord(uint32_t tobWord)
Set the "raw" 32-bit words describing the object candidate.
void setTobLocalPhi(uint8_t value)
void setGlobalPhi(uint value)
unsigned int unpackEtTOB() const
TOB ET (decoded from TOB, stored for convenience)
static const int s_etMask
static const int s_resMask
unsigned int unpackEtaIndex() const
Eta coordinates.
static const int s_etaMask
uint8_t tobLocalPhi() const
uint globalPhi() const
void setTobEt(uint16_t value)
static const int s_etaBit
int tobEtScale() const
static const int s_phiMask
uint8_t tobSat() const
unsigned int unpackPhiIndex() const
Phi coordinates.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setWord1 uint16_t
setEventNumber uint32_t
void initialize()