ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::jFexLRJetRoI_v1 Class Reference

Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format. More...

#include <jFexLRJetRoI_v1.h>

Inheritance diagram for xAOD::jFexLRJetRoI_v1:
Collaboration diagram for xAOD::jFexLRJetRoI_v1:

Public Member Functions

 jFexLRJetRoI_v1 ()
 Default constructor.
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.
uint32_t tobWord () const
 The "raw" 32-bit word describing the object candidate.
uint8_t jFexNumber () const
uint8_t fpgaNumber () const
uint16_t tobEt () const
uint8_t tobLocalEta () const
uint8_t tobLocalPhi () const
uint8_t tobSat () const
int globalEta () const
uint globalPhi () const
float eta () const
float phi () const
int tobEtScale () const
char isTOB () const
int menuEta () const
 the eta index to use for looking up thresholds in the menu
void setIsTOB (char value)
 Set the isTOB variable (TOB or xTOB).
void setTobWord (uint32_t tobWord)
 Set the "raw" 32-bit words describing the object candidate.
void setjFexNumber (uint8_t jFexNumber)
void setfpgaNumber (uint8_t fpgaNumber)
unsigned int unpackEtTOB () const
 TOB ET (decoded from TOB, stored for convenience).
void setTobEt (uint16_t value)
unsigned int et () const
 Methods that require combining results or applying scales.
unsigned int unpackEtaIndex () const
 Eta coordinates.
void setTobLocalEta (uint8_t value)
unsigned int unpackPhiIndex () const
 Phi coordinates.
void setTobLocalPhi (uint8_t value)
unsigned int unpackSaturationIndex () const
void setTobSat (uint8_t value)
int unpackGlobalEta () const
void setGlobalEta (int value)
void setEta (float value)
uint unpackGlobalPhi () const
void setGlobalPhi (uint value)
void setPhi (float value)
void setResolution (int value)

Static Private Attributes

static const std::vector< ints_FCAL_EtaPosition = {32,34,35,37,38,40,41,43,44,46,47,49}
static const std::vector< ints_FWD_EtaPosition
static const int s_resBit = 23
static const int s_etBit = 10
static const int s_etaBit = 5
static const int s_phiBit = 1
static const int s_satBit = 0
static const int s_etaMask = 0x1f
static const int s_phiMask = 0xf
static const int s_etMask = 0x1fff
static const int s_resMask = 0x7ff
static const int s_satMask = 0x1

Detailed Description

Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.

Definition at line 23 of file jFexLRJetRoI_v1.h.

Constructor & Destructor Documentation

◆ jFexLRJetRoI_v1()

xAOD::jFexLRJetRoI_v1::jFexLRJetRoI_v1 ( )

Default constructor.

Definition at line 37 of file jFexLRJetRoI_v1.cxx.

38 : SG::AuxElement() {
39 }
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.

Member Function Documentation

◆ et()

unsigned int xAOD::jFexLRJetRoI_v1::et ( ) const

Methods that require combining results or applying scales.

ET on TOB scale

Definition at line 139 of file jFexLRJetRoI_v1.cxx.

139 {
140 //Return the TOB Et in a 1 MeV scale
141 return tobEt()*tobEtScale();
142 }
uint16_t tobEt() const
int tobEtScale() const

◆ eta()

float xAOD::jFexLRJetRoI_v1::eta ( ) const

◆ fpgaNumber()

uint8_t xAOD::jFexLRJetRoI_v1::fpgaNumber ( ) const

◆ globalEta()

int xAOD::jFexLRJetRoI_v1::globalEta ( ) const

◆ globalPhi()

uint xAOD::jFexLRJetRoI_v1::globalPhi ( ) const

◆ initialize()

void xAOD::jFexLRJetRoI_v1::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 at line 40 of file jFexLRJetRoI_v1.cxx.

40 {
41
51 setEta( eta );
52 setPhi( phi );
53 setResolution( resolution );
54 setIsTOB(istob);
55
56 return;
57 }
void setEta(float value)
void setTobLocalEta(uint8_t value)
void setIsTOB(char value)
Set the isTOB variable (TOB or xTOB).
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
unsigned int unpackPhiIndex() const
Phi coordinates.
void setResolution(int value)
void setTobEt(uint16_t value)
void setTobSat(uint8_t value)
unsigned int unpackEtTOB() const
TOB ET (decoded from TOB, stored for convenience).
unsigned int unpackSaturationIndex() const
void setGlobalEta(int value)
uint8_t jFexNumber() const
void setjFexNumber(uint8_t jFexNumber)
void setTobLocalPhi(uint8_t value)
void setPhi(float value)
unsigned int unpackEtaIndex() const
Eta coordinates.
uint32_t tobWord() const
The "raw" 32-bit word describing the object candidate.

◆ isTOB()

char xAOD::jFexLRJetRoI_v1::isTOB ( ) const

◆ jFexNumber()

uint8_t xAOD::jFexLRJetRoI_v1::jFexNumber ( ) const

◆ menuEta()

int xAOD::jFexLRJetRoI_v1::menuEta ( ) const

the eta index to use for looking up thresholds in the menu

Definition at line 59 of file jFexLRJetRoI_v1.cxx.

59 {
60 // adapted from TSU::toTopoInteger
61 static const unsigned int RESOLUTION = 40;
62 float tmp = eta()*RESOLUTION;
63 int index;
64 if ( (abs(tmp)-0.5)/2. == std::round((abs(tmp)-0.5)/2.) ) {
65 if ( tmp>0 ) { index = std::floor(tmp); }
66 else { index = std::ceil(tmp); }
67 } else {
68 index = std::round(tmp);
69 }
70 return index/4;
71 }
str index
Definition DeMoScan.py:362

◆ phi()

float xAOD::jFexLRJetRoI_v1::phi ( ) const

◆ setEta()

void xAOD::jFexLRJetRoI_v1::setEta ( float value)

◆ setfpgaNumber()

void xAOD::jFexLRJetRoI_v1::setfpgaNumber ( uint8_t fpgaNumber)

◆ setGlobalEta()

void xAOD::jFexLRJetRoI_v1::setGlobalEta ( int value)

◆ setGlobalPhi()

void xAOD::jFexLRJetRoI_v1::setGlobalPhi ( uint value)

◆ setIsTOB()

void xAOD::jFexLRJetRoI_v1::setIsTOB ( char value)

Set the isTOB variable (TOB or xTOB).

◆ setjFexNumber()

void xAOD::jFexLRJetRoI_v1::setjFexNumber ( uint8_t jFexNumber)

◆ setPhi()

void xAOD::jFexLRJetRoI_v1::setPhi ( float value)

◆ setResolution()

void xAOD::jFexLRJetRoI_v1::setResolution ( int value)

◆ setTobEt()

void xAOD::jFexLRJetRoI_v1::setTobEt ( uint16_t value)

◆ setTobLocalEta()

void xAOD::jFexLRJetRoI_v1::setTobLocalEta ( uint8_t value)

◆ setTobLocalPhi()

void xAOD::jFexLRJetRoI_v1::setTobLocalPhi ( uint8_t value)

◆ setTobSat()

void xAOD::jFexLRJetRoI_v1::setTobSat ( uint8_t value)

◆ setTobWord()

void xAOD::jFexLRJetRoI_v1::setTobWord ( uint32_t tobWord)

Set the "raw" 32-bit words describing the object candidate.

◆ tobEt()

uint16_t xAOD::jFexLRJetRoI_v1::tobEt ( ) const

◆ tobEtScale()

int xAOD::jFexLRJetRoI_v1::tobEtScale ( ) const

◆ tobLocalEta()

uint8_t xAOD::jFexLRJetRoI_v1::tobLocalEta ( ) const

◆ tobLocalPhi()

uint8_t xAOD::jFexLRJetRoI_v1::tobLocalPhi ( ) const

◆ tobSat()

uint8_t xAOD::jFexLRJetRoI_v1::tobSat ( ) const

◆ tobWord()

uint32_t xAOD::jFexLRJetRoI_v1::tobWord ( ) const

The "raw" 32-bit word describing the object candidate.

◆ unpackEtaIndex()

unsigned int xAOD::jFexLRJetRoI::unpackEtaIndex ( ) const

Eta coordinates.

Definition at line 123 of file jFexLRJetRoI_v1.cxx.

123 {
124 return (tobWord() >> s_etaBit) & s_etaMask;
125 }
static const int s_etaMask
static const int s_etaBit

◆ unpackEtTOB()

unsigned int xAOD::jFexLRJetRoI_v1::unpackEtTOB ( ) const

TOB ET (decoded from TOB, stored for convenience).

Raw data words.

Used to differencite TOBs from xTOBs Extracted from data words global coordinates, stored for furture use but not sent to L1Topo Setting the jFEX ET resolution TOB or xTOB?

Definition at line 116 of file jFexLRJetRoI_v1.cxx.

116 {
117 //Data content = TOB
118 return (tobWord() >> s_etBit) & s_etMask;
119
120 }
static const int s_etBit
static const int s_etMask

◆ unpackGlobalEta()

int xAOD::jFexLRJetRoI_v1::unpackGlobalEta ( ) const

Definition at line 146 of file jFexLRJetRoI_v1.cxx.

146 {
147
148 int globalEta = 0;
149 if(jFexNumber()<3){
150 globalEta= 8*(jFexNumber()-2) - (tobLocalEta()+1);
151 }
152 else if(jFexNumber()<6){
153 globalEta= 8*(jFexNumber()-3) + (tobLocalEta());
154 }
155 return globalEta;
156 }
uint8_t tobLocalEta() const

◆ unpackGlobalPhi()

uint xAOD::jFexLRJetRoI_v1::unpackGlobalPhi ( ) const

Definition at line 159 of file jFexLRJetRoI_v1.cxx.

159 {
160 const unsigned int quadrant = ::getQuadrant(fpgaNumber());
161
162 uint globalPhi = tobLocalPhi() + (quadrant * 16);
163 return globalPhi;
164 }
unsigned int uint
uint8_t tobLocalPhi() const
uint globalPhi() const

◆ unpackPhiIndex()

unsigned int xAOD::jFexLRJetRoI::unpackPhiIndex ( ) const

Phi coordinates.

Definition at line 127 of file jFexLRJetRoI_v1.cxx.

127 {
128 return (tobWord() >> s_phiBit) & s_phiMask;
129 }
static const int s_phiBit
static const int s_phiMask

◆ unpackSaturationIndex()

unsigned int xAOD::jFexLRJetRoI::unpackSaturationIndex ( ) const

Definition at line 132 of file jFexLRJetRoI_v1.cxx.

132 {
133 return (tobWord() >> s_satBit) & s_satMask;
134 }
static const int s_satBit
static const int s_satMask

Member Data Documentation

◆ s_etaBit

const int xAOD::jFexLRJetRoI_v1::s_etaBit = 5
staticprivate

Definition at line 95 of file jFexLRJetRoI_v1.h.

◆ s_etaMask

const int xAOD::jFexLRJetRoI_v1::s_etaMask = 0x1f
staticprivate

Definition at line 100 of file jFexLRJetRoI_v1.h.

◆ s_etBit

const int xAOD::jFexLRJetRoI_v1::s_etBit = 10
staticprivate

Definition at line 94 of file jFexLRJetRoI_v1.h.

◆ s_etMask

const int xAOD::jFexLRJetRoI_v1::s_etMask = 0x1fff
staticprivate

Definition at line 102 of file jFexLRJetRoI_v1.h.

◆ s_FCAL_EtaPosition

const std::vector< int > xAOD::jFexLRJetRoI_v1::s_FCAL_EtaPosition = {32,34,35,37,38,40,41,43,44,46,47,49}
staticprivate

Definition at line 89 of file jFexLRJetRoI_v1.h.

◆ s_FWD_EtaPosition

const std::vector< int > xAOD::jFexLRJetRoI_v1::s_FWD_EtaPosition
staticprivate
Initial value:
= {0, 8,
9, 11,
12,
13, 23}

Definition at line 90 of file jFexLRJetRoI_v1.h.

◆ s_phiBit

const int xAOD::jFexLRJetRoI_v1::s_phiBit = 1
staticprivate

Definition at line 96 of file jFexLRJetRoI_v1.h.

◆ s_phiMask

const int xAOD::jFexLRJetRoI_v1::s_phiMask = 0xf
staticprivate

Definition at line 101 of file jFexLRJetRoI_v1.h.

◆ s_resBit

const int xAOD::jFexLRJetRoI_v1::s_resBit = 23
staticprivate

Definition at line 93 of file jFexLRJetRoI_v1.h.

◆ s_resMask

const int xAOD::jFexLRJetRoI_v1::s_resMask = 0x7ff
staticprivate

Definition at line 103 of file jFexLRJetRoI_v1.h.

◆ s_satBit

const int xAOD::jFexLRJetRoI_v1::s_satBit = 0
staticprivate

Definition at line 97 of file jFexLRJetRoI_v1.h.

◆ s_satMask

const int xAOD::jFexLRJetRoI_v1::s_satMask = 0x1
staticprivate

Definition at line 104 of file jFexLRJetRoI_v1.h.


The documentation for this class was generated from the following files: