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

Class holding the Missing ET trigger fex results. More...

#include <TrigMissingET_v1.h>

Inheritance diagram for xAOD::TrigMissingET_v1:
Collaboration diagram for xAOD::TrigMissingET_v1:

Public Member Functions

 TrigMissingET_v1 ()
 Defaut constructor.
Basic Kinematic Property accessors
float ex () const
 Get the x component of the missing energy.
void setEx (float s)
 Set the x component of the missing energy.
float ey () const
 Get the y component of the missing energy.
void setEy (float s)
 Set the y component of the missing energy.
float ez () const
 Get the z component of the missing energy.
void setEz (float s)
 Set the z component of the missing energy.
float sumEt () const
 Get the sum of the ET of the missing energy.
void setSumEt (float s)
 Set the sum of the ET of the missing energy.
float sumE () const
 Get the sum of the E of the missing energy.
void setSumE (float s)
 Set the sum of the ET of the missing energy.
Status accessors
int flag () const
 Get the status flag.
void setFlag (int s)
 Set the status flag.
uint32_t roiWord () const
 Get the ROI word.
void setRoiWord (uint32_t s)
 Set the ROI word.
MissingET Component accessors
void defineComponents (const std::vector< std::string > &componentNames)
 Define each of the components by name.
void setNameOfComponent (unsigned int index, const std::string &str)
 Set the name of a component.
const std::string & nameOfComponent (unsigned int index) const
 Get the name of a component.
unsigned int getNumberOfComponents () const
 Get the number of components.
void setExComponent (unsigned int index, float value)
 Set the x component fo the energy of a component.
float exComponent (unsigned int index) const
 Get the x component fo the energy of a component.
void setEyComponent (unsigned int index, float value)
 Set the y component fo the energy of a component.
float eyComponent (unsigned int index) const
 Get the y component fo the energy of a component.
void setEzComponent (unsigned int index, float value)
 Set the z component fo the energy of a component.
float ezComponent (unsigned int index) const
 Get the z component fo the energy of a component.
void setSumEtComponent (unsigned int index, float value)
 Set SumEt.
float sumEtComponent (unsigned int index) const
 Get SumEt.
void setSumEComponent (unsigned int index, float value)
 Set SumE.
float sumEComponent (unsigned int index) const
 Get SumE.
void setCalib0Component (unsigned int index, float value)
 Set Calib0.
float calib0Component (unsigned int index) const
 Get Calib0.
void setCalib1Component (unsigned int index, float value)
 Set Calib1.
float calib1Component (unsigned int index) const
 Get Calib1.
void setSumOfSignsComponent (unsigned int index, float value)
 Set SumOfSigns.
float sumOfSignsComponent (unsigned int index) const
 Get SumOfSigns.
void setStatusComponent (unsigned int index, float value)
 Set Status.
short statusComponent (unsigned int index) const
 Get Status.
void setUsedChannelsComponent (unsigned int index, float value)
 Set used Channels.
unsigned short usedChannelsComponent (unsigned int index) const
 Get used Channels.

Detailed Description

Class holding the Missing ET trigger fex results.

A class that holds the missing ET vector for the trigger. It further contains a list of components.

Author
Gordon Watts gwatt.nosp@m.s@uw.nosp@m..edu
Revision
630930
Date
2014-11-25 15:57:49 +0100 (Tue, 25 Nov 2014)

Definition at line 32 of file TrigMissingET_v1.h.

Constructor & Destructor Documentation

◆ TrigMissingET_v1()

xAOD::TrigMissingET_v1::TrigMissingET_v1 ( )

Defaut constructor.

Definition at line 22 of file TrigMissingET_v1.cxx.

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

Member Function Documentation

◆ calib0Component()

float xAOD::TrigMissingET_v1::calib0Component ( unsigned int index) const

Get Calib0.

Definition at line 174 of file TrigMissingET_v1.cxx.

174 {
175
176 return calib0Acc( *this ).at( index );
177 }
static const SG::AuxElement::Accessor< std::vector< float > > calib0Acc("calib0Component")

◆ calib1Component()

float xAOD::TrigMissingET_v1::calib1Component ( unsigned int index) const

Get Calib1.

Definition at line 185 of file TrigMissingET_v1.cxx.

185 {
186
187 return calib1Acc( *this ).at( index );
188 }
static const SG::AuxElement::Accessor< std::vector< float > > calib1Acc("calib1Component")

◆ defineComponents()

void xAOD::TrigMissingET_v1::defineComponents ( const std::vector< std::string > & componentNames)

Define each of the components by name.

This must be called first or an exception will be thrown if an attempt is made to set any component of the missing ET below. The components are stored in the order they are given.

Definition at line 66 of file TrigMissingET_v1.cxx.

67 {
68
69 // Make sure that we aren't killing off something that already exists
70 if( !nameAcc( *this ).empty()) {
71 throw std::runtime_error( "Attempt to redefine component list for "
72 "xAOD::TrigMissingET object" );
73 }
74
75 // Assign the component names:
76 nameAcc( *this ) = componentNames;
77
78 // Initialise all the variables:
79 exAcc( *this ).resize( componentNames.size(), 0.0 );
80 eyAcc( *this ).resize( componentNames.size(), 0.0 );
81 ezAcc( *this ).resize( componentNames.size(), 0.0 );
82 sumEtAcc( *this ).resize( componentNames.size(), 0.0 );
83 sumEAcc( *this ).resize( componentNames.size(), 0.0 );
84 calib0Acc( *this ).resize( componentNames.size(), 0.0 );
85 calib1Acc( *this ).resize( componentNames.size(), 1.0 );
86 sumOfSignsAcc( *this ).resize( componentNames.size(), 1.0 );
87 statusAcc( *this ).resize( componentNames.size(), 0 );
88 usedchannelsAcc( *this ).resize( componentNames.size(), 1 );
89
90
91 return;
92 }
static const SG::AuxElement::Accessor< std::vector< unsigned short > > usedchannelsAcc("usedChannelsComponent")
static const SG::AuxElement::Accessor< std::vector< short > > statusAcc("statusComponent")
static const SG::AuxElement::Accessor< std::vector< float > > sumEtAcc("sumEtComponent")
static const SG::AuxElement::Accessor< std::vector< float > > ezAcc("ezComponent")
static const SG::AuxElement::Accessor< std::vector< float > > eyAcc("eyComponent")
static const SG::AuxElement::Accessor< std::vector< float > > sumOfSignsAcc("sumOfSignsComponent")
static const SG::AuxElement::Accessor< std::string > nameAcc("name")
static const SG::AuxElement::Accessor< std::vector< float > > sumEAcc("sumEComponent")
static const SG::AuxElement::Accessor< std::vector< float > > exAcc("exComponent")

◆ ex()

float xAOD::TrigMissingET_v1::ex ( ) const

Get the x component of the missing energy.

◆ exComponent()

float xAOD::TrigMissingET_v1::exComponent ( unsigned int index) const

Get the x component fo the energy of a component.

Definition at line 119 of file TrigMissingET_v1.cxx.

119 {
120
121 return exAcc( *this ).at( index );
122 }

◆ ey()

float xAOD::TrigMissingET_v1::ey ( ) const

Get the y component of the missing energy.

◆ eyComponent()

float xAOD::TrigMissingET_v1::eyComponent ( unsigned int index) const

Get the y component fo the energy of a component.

Definition at line 130 of file TrigMissingET_v1.cxx.

130 {
131
132 return eyAcc( *this ).at( index );
133 }

◆ ez()

float xAOD::TrigMissingET_v1::ez ( ) const

Get the z component of the missing energy.

◆ ezComponent()

float xAOD::TrigMissingET_v1::ezComponent ( unsigned int index) const

Get the z component fo the energy of a component.

Definition at line 141 of file TrigMissingET_v1.cxx.

141 {
142
143 return ezAcc( *this ).at( index );
144 }

◆ flag()

int xAOD::TrigMissingET_v1::flag ( ) const

Get the status flag.

◆ getNumberOfComponents()

unsigned int xAOD::TrigMissingET_v1::getNumberOfComponents ( ) const

Get the number of components.

Definition at line 103 of file TrigMissingET_v1.cxx.

103 {
104 return nameAcc( *this ).size();
105 }

◆ nameOfComponent()

const std::string & xAOD::TrigMissingET_v1::nameOfComponent ( unsigned int index) const

Get the name of a component.

Definition at line 108 of file TrigMissingET_v1.cxx.

108 {
109
110 return nameAcc( *this ).at( index );
111 }

◆ roiWord()

uint32_t xAOD::TrigMissingET_v1::roiWord ( ) const

Get the ROI word.

◆ setCalib0Component()

void xAOD::TrigMissingET_v1::setCalib0Component ( unsigned int index,
float value )

Set Calib0.

Definition at line 168 of file TrigMissingET_v1.cxx.

168 {
169
170 calib0Acc( *this ).at( index ) = val;
171 return;
172 }

◆ setCalib1Component()

void xAOD::TrigMissingET_v1::setCalib1Component ( unsigned int index,
float value )

Set Calib1.

Definition at line 179 of file TrigMissingET_v1.cxx.

179 {
180
181 calib1Acc( *this ).at( index ) = val;
182 return;
183 }

◆ setEx()

void xAOD::TrigMissingET_v1::setEx ( float s)

Set the x component of the missing energy.

◆ setExComponent()

void xAOD::TrigMissingET_v1::setExComponent ( unsigned int index,
float value )

Set the x component fo the energy of a component.

Definition at line 113 of file TrigMissingET_v1.cxx.

113 {
114
115 exAcc( *this ).at( index ) = val;
116 return;
117 }

◆ setEy()

void xAOD::TrigMissingET_v1::setEy ( float s)

Set the y component of the missing energy.

◆ setEyComponent()

void xAOD::TrigMissingET_v1::setEyComponent ( unsigned int index,
float value )

Set the y component fo the energy of a component.

Definition at line 124 of file TrigMissingET_v1.cxx.

124 {
125
126 eyAcc( *this ).at( index ) = val;
127 return;
128 }

◆ setEz()

void xAOD::TrigMissingET_v1::setEz ( float s)

Set the z component of the missing energy.

◆ setEzComponent()

void xAOD::TrigMissingET_v1::setEzComponent ( unsigned int index,
float value )

Set the z component fo the energy of a component.

Definition at line 135 of file TrigMissingET_v1.cxx.

135 {
136
137 ezAcc( *this ).at( index ) = val;
138 return;
139 }

◆ setFlag()

void xAOD::TrigMissingET_v1::setFlag ( int s)

Set the status flag.

◆ setNameOfComponent()

void xAOD::TrigMissingET_v1::setNameOfComponent ( unsigned int index,
const std::string & str )

Set the name of a component.

Definition at line 95 of file TrigMissingET_v1.cxx.

96 {
97
98 nameAcc( *this ).at( index ) = str;
99 return;
100 }

◆ setRoiWord()

void xAOD::TrigMissingET_v1::setRoiWord ( uint32_t s)

Set the ROI word.

◆ setStatusComponent()

void xAOD::TrigMissingET_v1::setStatusComponent ( unsigned int index,
float value )

Set Status.

Definition at line 201 of file TrigMissingET_v1.cxx.

201 {
202
203 statusAcc( *this ).at( index ) = val;
204 return;
205 }

◆ setSumE()

void xAOD::TrigMissingET_v1::setSumE ( float s)

Set the sum of the ET of the missing energy.

◆ setSumEComponent()

void xAOD::TrigMissingET_v1::setSumEComponent ( unsigned int index,
float value )

Set SumE.

Definition at line 157 of file TrigMissingET_v1.cxx.

157 {
158
159 sumEAcc( *this ).at( index ) = val;
160 return;
161 }

◆ setSumEt()

void xAOD::TrigMissingET_v1::setSumEt ( float s)

Set the sum of the ET of the missing energy.

◆ setSumEtComponent()

void xAOD::TrigMissingET_v1::setSumEtComponent ( unsigned int index,
float value )

Set SumEt.

Definition at line 146 of file TrigMissingET_v1.cxx.

146 {
147
148 sumEtAcc( *this ).at( index ) = val;
149 return;
150 }

◆ setSumOfSignsComponent()

void xAOD::TrigMissingET_v1::setSumOfSignsComponent ( unsigned int index,
float value )

Set SumOfSigns.

Definition at line 190 of file TrigMissingET_v1.cxx.

190 {
191
192 sumOfSignsAcc( *this ).at( index ) = val;
193 return;
194 }

◆ setUsedChannelsComponent()

void xAOD::TrigMissingET_v1::setUsedChannelsComponent ( unsigned int index,
float value )

Set used Channels.

Definition at line 212 of file TrigMissingET_v1.cxx.

212 {
213
214 usedchannelsAcc( *this ).at( index ) = val;
215 return;
216 }

◆ statusComponent()

short xAOD::TrigMissingET_v1::statusComponent ( unsigned int index) const

Get Status.

Definition at line 207 of file TrigMissingET_v1.cxx.

207 {
208
209 return statusAcc( *this ).at( index );
210 }

◆ sumE()

float xAOD::TrigMissingET_v1::sumE ( ) const

Get the sum of the E of the missing energy.

◆ sumEComponent()

float xAOD::TrigMissingET_v1::sumEComponent ( unsigned int index) const

Get SumE.

Definition at line 163 of file TrigMissingET_v1.cxx.

163 {
164
165 return sumEAcc( *this ).at( index );
166 }

◆ sumEt()

float xAOD::TrigMissingET_v1::sumEt ( ) const

Get the sum of the ET of the missing energy.

◆ sumEtComponent()

float xAOD::TrigMissingET_v1::sumEtComponent ( unsigned int index) const

Get SumEt.

Definition at line 152 of file TrigMissingET_v1.cxx.

152 {
153
154 return sumEtAcc( *this ).at( index );
155 }

◆ sumOfSignsComponent()

float xAOD::TrigMissingET_v1::sumOfSignsComponent ( unsigned int index) const

Get SumOfSigns.

Definition at line 196 of file TrigMissingET_v1.cxx.

196 {
197
198 return sumOfSignsAcc( *this ).at( index );
199 }

◆ usedChannelsComponent()

unsigned short xAOD::TrigMissingET_v1::usedChannelsComponent ( unsigned int index) const

Get used Channels.

Definition at line 218 of file TrigMissingET_v1.cxx.

218 {
219
220 return usedchannelsAcc( *this ).at( index );
221 }

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