ATLAS Offline Software
Loading...
Searching...
No Matches
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):
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;
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;
58 void setTobEt( uint16_t value);
59 unsigned int et() const;
60
62 unsigned int unpackIsoTOB() const;
63 void setTobIso( uint16_t value);
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;
78 void setTobSat(uint8_t value);
79
80
81 //Global coords
82 int unpackGlobalEta() const;
83 void setGlobalEta(int value);
84 void setEta(float value);
85
86 uint unpackGlobalPhi() const;
87 void setGlobalPhi(uint value);
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
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 setTobEt(uint16_t value)
void setEta(float value)
void setIsTOB(char value)
Set the isTOB variable (TOB or xTOB)
static const int s_isoBit
uint32_t tobWord() const
The "raw" 32-bit word describing the object candidate.
static const int s_etMask
void setGlobalPhi(uint value)
int unpackGlobalEta() const
As the Trigger towers are 1x1 in Eta - Phi coords (x10)
unsigned int unpackIsoTOB() const
TOB Isolation (decoded from TOB, stored for convenience)
uint globalPhi() const
int globalEta() const
uint8_t tobLocalPhi() const
char isTOB() const
unsigned int unpackSaturationIndex() const
void setTobLocalEta(uint8_t value)
void setTobLocalPhi(uint8_t value)
unsigned int iso() const
Iso on TOB scale.
void setjFexNumber(uint8_t jFexNumber)
jFexTauRoI_v1()
Default constructor.
static const int s_phiMask
uint16_t tobIso() const
static const int s_etBit
static const int s_etaMask
float phi() const
unsigned int unpackEtaIndex() const
Eta coordinates.
int tobEtScale() const
void setTobIso(uint16_t value)
void setPhi(float value)
static const int s_phiBit
uint8_t fpgaNumber() const
unsigned int unpackPhiIndex() const
Phi coordinates.
uint16_t tobEt() const
void setfpgaNumber(uint8_t fpgaNumber)
void setGlobalEta(int value)
float eta() const
void setTobSat(uint8_t value)
uint8_t jFexNumber() const
void setResolution(int value)
uint unpackGlobalPhi() const
static const int s_satBit
unsigned int et() const
Methods that require combining results or applying scales.
static const int s_satMask
uint8_t tobSat() const
void setTobWord(uint32_t tobWord)
Set the "raw" 32-bit words describing the object candidate.
unsigned int unpackEtTOB() const
TOB ET (decoded from TOB, stored for convenience)
uint8_t tobLocalEta() const
static const int s_etaBit
static const int s_isoMask
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setWord1 uint16_t
setEventNumber uint32_t
void initialize()