ATLAS Offline Software
Public Member Functions | Static Public Member Functions | List of all members
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 ()
 
 Weight (float wpx, float wpy, float wet)
 
 Weight (float wpx, float wpy, float wet, unsigned short int status)
 
virtual ~Weight ()
 
 Weight (const Weight &w)
 
 Weight (Weight &w)
 
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
 
Weightoperator= (const Weight &w)
 
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

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

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  }

◆ Weight() [2/10]

MissingETHandlers::Weight::Weight ( )
inline

◆ Weight() [3/10]

MissingETHandlers::Weight::Weight ( float  wpx,
float  wpy,
float  wet 
)
inline

◆ Weight() [4/10]

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

◆ ~Weight()

virtual MissingETHandlers::Weight::~Weight ( )
inlinevirtual

◆ Weight() [5/10]

MissingETHandlers::Weight::Weight ( const Weight w)
inline

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

205 : struct_t(w.wpx(),w.wpy(),w.wet(),w.statusWord()) { }

◆ Weight() [6/10]

MissingETHandlers::Weight::Weight ( Weight w)
inline

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

206 : struct_t(w.wpx(),w.wpy(),w.wet(),w.statusWord()) { }

◆ 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  }

◆ 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()

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

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

271  { return y != 0. ? x /y : 0.; }

◆ isEqual()

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

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

274  { return fabs(x-y) <= precision()*fabs(x); }

◆ operator!=()

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

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

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

◆ operator*=()

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

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

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

◆ operator+=()

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

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

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

◆ operator-=()

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

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

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

◆ operator/=()

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

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

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

◆ operator=()

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

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

262  {
263  this->setWpx(w.wpx());
264  this->setWpy(w.wpy());
265  this->setWet(w.wet());
266  this->setStatusWord(w.statusWord());
267  return *this;
268  }

◆ operator==()

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

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

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

◆ setStatusWord()

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

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

216 { std::get<3>(*this) = status; }

◆ setWet()

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

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

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

◆ setWpx()

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

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

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

◆ setWpy()

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

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

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

◆ statusWord()

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

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

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

◆ wet()

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

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

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

◆ wpx()

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

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

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

◆ wpy()

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

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

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

The documentation for this class was generated from the following files:
MissingETHandlers::Weight::wpy
float wpy() const
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:209
MissingETHandlers::struct_t
std::tuple< float, float, float, unsigned short int > struct_t
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:181
MissingETHandlers::Weight::setWpy
void setWpy(float wpy)
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:214
x
#define x
MissingETComposition_p1::Weight_p1::wet
float wet
Definition: MissingETComposition_p1.h:24
MissingETComposition_p1::Weight_p1::statusWord
unsigned short int statusWord
Definition: MissingETComposition_p1.h:25
MissingETHandlers::Weight::wet
float wet() const
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:210
Weight_p1::w
float w[3]
Definition: MissingETComposition_p2.h:19
MissingETHandlers::Weight::setWpx
void setWpx(float wpx)
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:213
MissingETComposition_p1::Weight_p1::wy
float wy
Definition: MissingETComposition_p1.h:23
Weight_p1::statusWord
unsigned short int statusWord
Definition: MissingETComposition_p2.h:20
MissingETHandlers::Weight::wpx
float wpx() const
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:208
MissingETHandlers::Weight::divide
static float divide(float x, float y)
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:270
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
PERS
RpcSectorLogicContainer_p1 PERS
Definition: RpcSectorLogicContainerCnv.h:13
MissingETComposition_p1::Weight_p1::wx
float wx
Definition: MissingETComposition_p1.h:22
y
#define y
MissingETHandlers::Weight::isEqual
static bool isEqual(float x, float y)
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:273
MissingETHandlers::Weight::setStatusWord
void setStatusWord(unsigned short int status)
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:216
merge.status
status
Definition: merge.py:17
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
MissingETHandlers::Weight::setWet
void setWet(float wet)
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingETComposition.h:215