ATLAS Offline Software
Loading...
Searching...
No Matches
jFexSumETRoI_v1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6// System include(s):
7#include <stdexcept>
8
9// xAOD include(s):
11
12// Local include(s):
14
15namespace xAOD {
16
21
29 setResolution ( resolution );
30
31 //include in future when xTOB in jFEX has been implemented.
32
33 // If the object is a TOB then the isTOB should be true.
34 // For xTOB default is false, but should be set if a matching TOB is found
35 // if (type() == TOB) setIsTOB(1);
36 // else setIsTOB(0);
37
38 return;
39 }
40
41 //----------------
43 //----------------
44
49
51 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( jFexSumETRoI_v1, uint16_t, tobEt_lower , setTobEt_lower )
52 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( jFexSumETRoI_v1, uint16_t, tobEt_upper , setTobEt_upper )
53 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( jFexSumETRoI_v1, uint8_t , tobSat_lower, setTobSat_lower)
54 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( jFexSumETRoI_v1, uint8_t , tobSat_upper, setTobSat_upper)
55
56
58
59
60 //-----------------
62 //-----------------
63
64 //include in future when xTOB in jFEX has been implemented.
65
66
67 //jFexSumETRoI_v1::ObjectType jFexSumETRoI_v1::type() const {
68 //if (Word1() == 0) return TOB;
69 //else return xTOB;
70 //}
71
72 //Raw ET_lower on TOB scale (200 MeV/count)
76
77 //Raw ET_upper on TOB scale (200 MeV/count)
81
82 //Return sat Et_lower flag
86 //Return sat Et_upper flag
90
92
95 return tobEt_lower()*tobEtScale();
96 }
97
100 return tobEt_upper()*tobEtScale();
101 }
102
103
104} // namespace xAOD
105
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
AuxElement()
Default constructor.
Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.
uint8_t unpackSat_lower() const
static const int s_Et_lowerMask
static const int s_Sat_upperMask
void setTobSat_upper(uint8_t value)
uint32_t tobWord() const
The "raw" 32-bit word describing the object candidate.
int Et_upper() const
Et_upper in 1 MeV scale.
void setjFexNumber(uint8_t jFexNumber)
uint16_t unpackEt_upper() const
static const int s_Et_lowerBit
static const int s_Et_upperBit
uint16_t tobEt_lower() const
void setTobWord(uint32_t tobWord)
Set the "raw" 32-bit words describing the object candidate.
void setTobSat_lower(uint8_t value)
uint16_t unpackEt_lower() const
Raw data words.
static const int s_Sat_lowerMask
void setfpgaNumber(uint8_t fpgaNumber)
static const int s_Et_upperMask
void initialize(uint8_t jFexNumber, uint8_t fpgaNumber, uint32_t tobWord, int resolution)
In future initialze the xTOB as well, word1.
uint8_t fpgaNumber() const
jFexSumETRoI_v1()
Default constructor.
static const int s_Sat_upperBit
static const int s_Sat_lowerBit
void setResolution(int value)
void setTobEt_upper(uint16_t value)
int Et_lower() const
Methods that require combining results or applying scales.
uint16_t tobEt_upper() const
int tobEtScale() const
void setTobEt_lower(uint16_t value)
uint8_t unpackSat_upper() const
uint8_t jFexNumber() const
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setWord1 uint16_t
setEventNumber uint32_t