ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODTrigger
Root
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):
10
#include "
xAODCore/AuxStoreAccessorMacros.h
"
11
12
// Local include(s):
13
#include "
xAODTrigger/jFexSumETRoI.h
"
14
15
namespace
xAOD
{
16
17
jFexSumETRoI_v1::jFexSumETRoI_v1
()
18
:
SG
::AuxElement() {
19
}
20
void
jFexSumETRoI_v1::initialize
(
uint8_t
jFexNumber
,
uint8_t
fpgaNumber
,
uint32_t
tobWord
,
int
resolution) {
21
22
setTobWord
(
tobWord
);
23
setjFexNumber
(
jFexNumber
);
24
setfpgaNumber
(
fpgaNumber
);
25
setTobEt_lower
(
unpackEt_lower
() );
26
setTobEt_upper
(
unpackEt_upper
() );
27
setTobSat_lower
(
unpackSat_lower
() );
28
setTobSat_upper
(
unpackSat_upper
() );
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
45
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
jFexSumETRoI_v1
,
uint32_t
, tobWord , setTobWord )
46
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
jFexSumETRoI_v1
,
uint8_t
, jFexNumber, setjFexNumber)
47
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
jFexSumETRoI_v1
,
uint8_t
, fpgaNumber, setfpgaNumber)
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
57
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
jFexSumETRoI_v1
,
int
,
tobEtScale
, setResolution)
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)
73
uint16_t
jFexSumETRoI_v1
::
unpackEt_lower
()
const
{
74
return
(
tobWord
() >>
s_Et_lowerBit
) &
s_Et_lowerMask
;
75
}
76
77
//Raw ET_upper on TOB scale (200 MeV/count)
78
uint16_t
jFexSumETRoI_v1::unpackEt_upper
()
const
{
79
return
(
tobWord
() >>
s_Et_upperBit
) &
s_Et_upperMask
;
80
}
81
82
//Return sat Et_lower flag
83
uint8_t
jFexSumETRoI_v1::unpackSat_lower
()
const
{
84
return
(
tobWord
() >>
s_Sat_lowerBit
) &
s_Sat_lowerMask
;
85
}
86
//Return sat Et_upper flag
87
uint8_t
jFexSumETRoI_v1::unpackSat_upper
()
const
{
88
return
(
tobWord
() >>
s_Sat_upperBit
) &
s_Sat_upperMask
;
89
}
90
92
94
int
jFexSumETRoI_v1::Et_lower
()
const
{
95
return
tobEt_lower
()*
tobEtScale
();
96
}
97
99
int
jFexSumETRoI_v1::Et_upper
()
const
{
100
return
tobEt_upper
()*
tobEtScale
();
101
}
102
103
104
}
// namespace xAOD
105
AuxStoreAccessorMacros.h
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
Definition
AuxStoreAccessorMacros.h:36
xAOD::jFexSumETRoI_v1
Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.
Definition
jFexSumETRoI_v1.h:22
xAOD::jFexSumETRoI_v1::unpackSat_lower
uint8_t unpackSat_lower() const
Definition
jFexSumETRoI_v1.cxx:83
xAOD::jFexSumETRoI_v1::s_Et_lowerMask
static const int s_Et_lowerMask
Definition
jFexSumETRoI_v1.h:78
xAOD::jFexSumETRoI_v1::s_Sat_upperMask
static const int s_Sat_upperMask
Definition
jFexSumETRoI_v1.h:76
xAOD::jFexSumETRoI_v1::setTobSat_upper
void setTobSat_upper(uint8_t value)
xAOD::jFexSumETRoI_v1::tobWord
uint32_t tobWord() const
The "raw" 32-bit word describing the object candidate.
xAOD::jFexSumETRoI_v1::Et_upper
int Et_upper() const
Et_upper in 1 MeV scale.
Definition
jFexSumETRoI_v1.cxx:99
xAOD::jFexSumETRoI_v1::setjFexNumber
void setjFexNumber(uint8_t jFexNumber)
xAOD::jFexSumETRoI_v1::unpackEt_upper
uint16_t unpackEt_upper() const
Definition
jFexSumETRoI_v1.cxx:78
xAOD::jFexSumETRoI_v1::s_Et_lowerBit
static const int s_Et_lowerBit
Definition
jFexSumETRoI_v1.h:72
xAOD::jFexSumETRoI_v1::s_Et_upperBit
static const int s_Et_upperBit
Definition
jFexSumETRoI_v1.h:71
xAOD::jFexSumETRoI_v1::tobEt_lower
uint16_t tobEt_lower() const
xAOD::jFexSumETRoI_v1::setTobWord
void setTobWord(uint32_t tobWord)
Set the "raw" 32-bit words describing the object candidate.
xAOD::jFexSumETRoI_v1::setTobSat_lower
void setTobSat_lower(uint8_t value)
xAOD::jFexSumETRoI_v1::unpackEt_lower
uint16_t unpackEt_lower() const
Raw data words.
Definition
jFexSumETRoI_v1.cxx:73
xAOD::jFexSumETRoI_v1::s_Sat_lowerMask
static const int s_Sat_lowerMask
Definition
jFexSumETRoI_v1.h:79
xAOD::jFexSumETRoI_v1::setfpgaNumber
void setfpgaNumber(uint8_t fpgaNumber)
xAOD::jFexSumETRoI_v1::s_Et_upperMask
static const int s_Et_upperMask
Definition
jFexSumETRoI_v1.h:77
xAOD::jFexSumETRoI_v1::initialize
void initialize(uint8_t jFexNumber, uint8_t fpgaNumber, uint32_t tobWord, int resolution)
In future initialze the xTOB as well, word1.
Definition
jFexSumETRoI_v1.cxx:20
xAOD::jFexSumETRoI_v1::fpgaNumber
uint8_t fpgaNumber() const
xAOD::jFexSumETRoI_v1::jFexSumETRoI_v1
jFexSumETRoI_v1()
Default constructor.
Definition
jFexSumETRoI_v1.cxx:17
xAOD::jFexSumETRoI_v1::s_Sat_upperBit
static const int s_Sat_upperBit
Definition
jFexSumETRoI_v1.h:70
xAOD::jFexSumETRoI_v1::s_Sat_lowerBit
static const int s_Sat_lowerBit
Definition
jFexSumETRoI_v1.h:73
xAOD::jFexSumETRoI_v1::setResolution
void setResolution(int value)
xAOD::jFexSumETRoI_v1::setTobEt_upper
void setTobEt_upper(uint16_t value)
xAOD::jFexSumETRoI_v1::Et_lower
int Et_lower() const
Methods that require combining results or applying scales.
Definition
jFexSumETRoI_v1.cxx:94
xAOD::jFexSumETRoI_v1::tobEt_upper
uint16_t tobEt_upper() const
xAOD::jFexSumETRoI_v1::tobEtScale
int tobEtScale() const
xAOD::jFexSumETRoI_v1::setTobEt_lower
void setTobEt_lower(uint16_t value)
xAOD::jFexSumETRoI_v1::unpackSat_upper
uint8_t unpackSat_upper() const
Definition
jFexSumETRoI_v1.cxx:87
xAOD::jFexSumETRoI_v1::jFexNumber
uint8_t jFexNumber() const
jFexSumETRoI.h
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::tobEtScale
tobEtScale
Definition
gFexJetRoI_v1.cxx:64
xAOD::uint8_t
uint8_t
Definition
Muon_v1.cxx:500
xAOD::uint16_t
setWord1 uint16_t
Definition
eFexEMRoI_v1.cxx:93
xAOD::uint32_t
setEventNumber uint32_t
Definition
EventInfo_v1.cxx:127
Generated on
for ATLAS Offline Software by
1.17.0