ATLAS Offline Software
Loading...
Searching...
No Matches
EnergySumRoI_v1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6// xAOD include(s):
8
9// Local include(s):
11
12namespace xAOD {
13
18
27 uint32_t roiword2,
28 float energyX, float energyY,
29 float energyT ) {
30
31 setRoIWord0( roiword0 );
32 setRoIWord1( roiword1 );
33 setRoIWord2( roiword2 );
34
38
39 return;
40 }
41
43 //
44 // Implementation for the RoI word accessor functions
45 //
46
48 setRoIWord0 )
50 setRoIWord1 )
52 setRoIWord2 )
53
54 //
56
58 //
59 // Implementation of the threshold pattern helper functions
60 //
61
62 uint32_t EnergySumRoI_v1::thrPatSumET() const {
63
64 return ( ( roiWord0() >> 16 ) & 0xff );
65 }
66
68
69 return ( ( roiWord1() >> 16 ) & 0xff );
70 }
71
73
74 return ( ( roiWord2() >> 16 ) & 0xff );
75 }
76
77 //
79
81 //
82 // Implementation of the overflow helper functions
83 //
84
85 bool EnergySumRoI_v1::overflowX() const {
86
87 return ( ( roiWord0() >> 15 ) & 0x1 );
88 }
89
90 bool EnergySumRoI_v1::overflowY() const {
91
92 return ( ( roiWord1() >> 15 ) & 0x1 );
93 }
94
95 bool EnergySumRoI_v1::overflowT() const {
96
97 return ( ( roiWord2() >> 15 ) & 0x1 );
98 }
99
100 //
102
104 //
105 // Implementation of the threshold accessor functions
106 //
107
110 names( "thrNames" );
111
112 void EnergySumRoI_v1::addThreshold( const std::string& name ) {
113
114 names( *this ).push_back( name );
115 return;
116 }
117
119
120 names( *this ).clear();
121 return;
122 }
123
124 const std::vector< std::string >& EnergySumRoI_v1::thrNames() const {
125
126 return names( *this );
127 }
128
129 //
131
133 //
134 // Implementation for the energy accessor functions
135 //
136
138 setEnergyX )
140 setEnergyY )
142 setEnergyT )
143
144 //
146
147} // namespace xAOD
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:572
AuxElement()
Default constructor.
Class describing a LVL1 energy-sum "RoI".
void clearThresholds()
Remove all the passed thresholds.
bool overflowT() const
The overflow flag for the ET calculation.
bool overflowY() const
The overflow flag for the EY calculation.
void setEnergyY(float value)
Set the total energy deposited in the Y direction.
float energyX() const
The total energy deposited in the X direction.
void setEnergyT(float value)
Set the deposited total transverse energy.
void setRoIWord1(uint32_t value)
Set the second "raw" RoI word describing the energy-sum RoI.
void setEnergyX(float value)
Set the total energy deposited in the X direction.
void setRoIWord0(uint32_t value)
Set the first "raw" RoI word describing the energy-sum RoI.
uint32_t roiWord2() const
The third RoI word produced by the L1Calo hardware.
void setRoIWord2(uint32_t value)
Set the third "raw" RoI word describing the energy-sum RoI.
void initialize(uint32_t roiword0, uint32_t roiword1, uint32_t roiword2, float energyX, float energyY, float energyT)
Initialise the object with its most important properties.
float energyY() const
The total energy deposited in the Y direction.
uint32_t roiWord1() const
The second RoI word produced by the L1Calo hardware.
float energyT() const
The deposited total transverse energy.
uint32_t thrPatMET() const
The bit-pattern describing the passed missing-ET thresholds.
const std::vector< std::string > & thrNames() const
The names of the thresholds passed.
void addThreshold(const std::string &name)
Add a new threshold that was passed.
bool overflowX() const
The overflow flag for the EX calculation.
uint32_t roiWord0() const
The first RoI word produced by the L1Calo hardware.
uint32_t thrPatMETSig() const
The bit-pattern describing the passed missing-ET significance thresholds.
EnergySumRoI_v1()
Default constructor.
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
static const SG::AuxElement::Accessor< std::vector< std::string > > names("thrNames")
Accessor for the names of the passed thresholds.
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
setEventNumber uint32_t