ATLAS Offline Software
Loading...
Searching...
No Matches
MissingETHandlers::Weight Class Reference

#include <MissingETComposition.h>

Inheritance diagram for MissingETHandlers::Weight:
Collaboration diagram for MissingETHandlers::Weight:

Public Member Functions

template<typename PERS>
 Weight (PERS &)
 Weight ()=default
 Weight (float wpx, float wpy, float wet)
 Weight (float wpx, float wpy, float wet, unsigned short int status)
virtual ~Weight ()=default
 Weight (const Weight &w)=default
Weightoperator= (const Weight &w)=default
 Weight (Weight &&w)=default
Weightoperator= (Weight &&w)=default
float wpx () const
float wpy () const
float wet () const
unsigned short int statusWord () const
void setWpx (float wpx)
void setWpy (float wpy)
void setWet (float wet)
void setStatusWord (unsigned short int status)
Weightoperator+= (const Weight &w)
Weightoperator-= (const Weight &w)
Weightoperator*= (const Weight &w)
Weightoperator/= (const Weight &w)
bool operator== (const Weight &w) const
bool operator!= (const Weight &w) const
template<>
 Weight (MissingETComposition_p1::Weight_p1 &w)
template<>
 Weight (const MissingETComposition_p1::Weight_p1 &w)
template<>
 Weight (Weight_p1 &we)
template<>
 Weight (const Weight_p1 &we)

Static Public Member Functions

static float divide (float x, float y)
static bool isEqual (float x, float y)

Detailed Description

Constructor & Destructor Documentation

◆ Weight() [1/10]

template<typename PERS>
MissingETHandlers::Weight::Weight ( PERS & )
inline

Definition at line 190 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

191 {
192 this->setWpx(0);
193 this->setWpy(0);
194 this->setWet(0);
195 this->setStatusWord(0);
196 std::cerr << "Rolf: calling general template for Weight c'tor ! You need to specialize it for " << typeid(PERS).name() << " !\n";
197 abort();
198 }
RpcSectorLogicContainer_p1 PERS

◆ Weight() [2/10]

MissingETHandlers::Weight::Weight ( )
default

◆ Weight() [3/10]

◆ Weight() [4/10]

MissingETHandlers::Weight::Weight ( float wpx,
float wpy,
float wet,
unsigned short int status )
inline

◆ ~Weight()

virtual MissingETHandlers::Weight::~Weight ( )
virtualdefault

◆ Weight() [5/10]

MissingETHandlers::Weight::Weight ( const Weight & w)
default

◆ Weight() [6/10]

MissingETHandlers::Weight::Weight ( Weight && w)
default

◆ Weight() [7/10]

template<>
MissingETHandlers::Weight::Weight ( MissingETComposition_p1::Weight_p1 & w)

Definition at line 19 of file MissingETCompositionCnv_p1.cxx.

19 {
20 this->setWpx(w.wx); this->setWpy(w.wy); this->setWet(w.wet); this->setStatusWord(w.statusWord);
21 }

◆ Weight() [8/10]

template<>
MissingETHandlers::Weight::Weight ( const MissingETComposition_p1::Weight_p1 & w)

Definition at line 24 of file MissingETCompositionCnv_p1.cxx.

24 {
25 this->setWpx(w.wx); this->setWpy(w.wy); this->setWet(w.wet); this->setStatusWord(w.statusWord);
26 }

◆ Weight() [9/10]

template<>
MissingETHandlers::Weight::Weight ( Weight_p1 & we)

Definition at line 19 of file MissingETCompositionCnv_p2.cxx.

19 {
20 this->setWpx(we.w[0]); this->setWpy(we.w[1]); this->setWet(we.w[2]); this->setStatusWord(we.statusWord);
21 }
unsigned short int statusWord

◆ Weight() [10/10]

template<>
MissingETHandlers::Weight::Weight ( const Weight_p1 & we)

Definition at line 24 of file MissingETCompositionCnv_p2.cxx.

24 {
25 this->setWpx(we.w[0]); this->setWpy(we.w[1]); this->setWet(we.w[2]); this->setStatusWord(we.statusWord);
26 }

Member Function Documentation

◆ divide()

float MissingETHandlers::Weight::divide ( float x,
float y )
inlinestatic

Definition at line 263 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

264 { return y != 0. ? x /y : 0.; }
#define y
#define x

◆ isEqual()

bool MissingETHandlers::Weight::isEqual ( float x,
float y )
inlinestatic

◆ operator!=()

bool MissingETHandlers::Weight::operator!= ( const Weight & w) const
inline

Definition at line 260 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

261 { return !(this->operator==)(w); }

◆ operator*=()

Weight & MissingETHandlers::Weight::operator*= ( const Weight & w)
inline

Definition at line 236 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

237 {
238 this->setWpx(w.wpx()*this->wpx());
239 this->setWpy(w.wpy()*this->wpy());
240 this->setWet(w.wet()*this->wet());
241 return *this;
242 }

◆ operator+=()

Weight & MissingETHandlers::Weight::operator+= ( const Weight & w)
inline

Definition at line 220 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

221 {
222 this->setWpx(w.wpx()+this->wpx());
223 this->setWpy(w.wpy()+this->wpy());
224 this->setWet(w.wet()+this->wet());
225 return *this;
226 }

◆ operator-=()

Weight & MissingETHandlers::Weight::operator-= ( const Weight & w)
inline

Definition at line 228 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

229 {
230 this->setWpx(this->wpx()-w.wpx());
231 this->setWpy(this->wpy()-w.wpy());
232 this->setWet(this->wet()-w.wet());
233 return *this;
234 }

◆ operator/=()

Weight & MissingETHandlers::Weight::operator/= ( const Weight & w)
inline

Definition at line 244 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

245 {
246 this->setWpx(this->divide(this->wpx(),w.wpx()));
247 this->setWpy(this->divide(this->wpy(),w.wpy()));
248 this->setWet(this->divide(this->wet(),w.wet()));
249 return *this;
250 }

◆ operator=() [1/2]

Weight & MissingETHandlers::Weight::operator= ( const Weight & w)
default

◆ operator=() [2/2]

Weight & MissingETHandlers::Weight::operator= ( Weight && w)
default

◆ operator==()

bool MissingETHandlers::Weight::operator== ( const Weight & w) const
inline

Definition at line 252 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

253 {
254 return
255 isEqual(w.wpx(),this->wpx()) &&
256 isEqual(w.wpy(),this->wpy()) &&
257 isEqual(w.wet(),this->wet());
258 }

◆ setStatusWord()

void MissingETHandlers::Weight::setStatusWord ( unsigned short int status)
inline

Definition at line 218 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

218{ std::get<3>(*this) = status; }
status
Definition merge.py:16

◆ setWet()

void MissingETHandlers::Weight::setWet ( float wet)
inline

Definition at line 217 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

217{ std::get<2>(*this) = wet; }

◆ setWpx()

void MissingETHandlers::Weight::setWpx ( float wpx)
inline

Definition at line 215 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

215{ std::get<0>(*this) = wpx; }

◆ setWpy()

void MissingETHandlers::Weight::setWpy ( float wpy)
inline

Definition at line 216 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

216{ std::get<1>(*this) = wpy; }

◆ statusWord()

unsigned short int MissingETHandlers::Weight::statusWord ( ) const
inline

Definition at line 213 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

213{ return (unsigned short int)std::get<3>(*this); }

◆ wet()

float MissingETHandlers::Weight::wet ( ) const
inline

Definition at line 212 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

212{ return (float)std::get<2>(*this); }

◆ wpx()

float MissingETHandlers::Weight::wpx ( ) const
inline

Definition at line 210 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

210{ return (float)std::get<0>(*this); }

◆ wpy()

float MissingETHandlers::Weight::wpy ( ) const
inline

Definition at line 211 of file Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h.

211{ return (float)std::get<1>(*this); }

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