ATLAS Offline Software
Public Member Functions | List of all members
xAOD::MissingETAssociation_v1::ConstVec Class Reference

Vector sum of constituents for subtractive overlap removal. More...

#include <MissingETAssociation_v1.h>

Collaboration diagram for xAOD::MissingETAssociation_v1::ConstVec:

Public Member Functions

 ConstVec ()
 Default constructor. More...
 
 ConstVec (float cpx, float cpy, float cpz, float ce, float sumpt)
 Constructor with parameters. More...
 
 ConstVec (const IParticle &ipar)
 Constructor from IParticle. More...
 
 ~ConstVec ()
 Data class destructor. More...
 
Accessors
float cpx () const
 Returns \( c_{x} \). More...
 
float cpy () const
 Returns \( c_{y} \). More...
 
float cpz () const
 Returns \( c_{z} \). More...
 
float cpt () const
 Returns \( c_{T} \). More...
 
float ce () const
 Returns \( c_{e} \). More...
 
float sumpt () const
 Returns sum of component pt. More...
 
Setters
void setCpx (float px)
 Set \( c_{x} \). More...
 
void setCpy (float py)
 Set \( c_{y} \). More...
 
void setCpz (float pz)
 Set \( c_{z} \). More...
 
void setCe (float e)
 Set \( c_{e} \). More...
 
void setSumpt (float sumpt)
 Set sumpt. More...
 
Modifiers for constituent vector
floatcpx ()
 Returns reference to modifiable data word storing \( c_{x} \). More...
 
floatcpy ()
 Returns reference to modifiable data word storing \( c_{y} \). More...
 
floatcpz ()
 Returns reference to modifiable data word storing \( c_{z} \). More...
 
floatce ()
 Returns reference to modifiable data word storing \( c_{e} \). More...
 
floatsumpt ()
 Returns reference to modifiable data word storing sum of component pt. More...
 
ConstVecoperator+= (const ConstVec &cvec)
 Add another vector. More...
 
ConstVecoperator-= (const ConstVec &cvec)
 Subtract another vector. More...
 
ConstVecoperator*= (float scale)
 Scale vector by multiplication. More...
 
ConstVecoperator/= (float scale)
 Scale vector by division. More...
 
Comparators
bool operator== (const ConstVec &cvec) const
 Equality comparator. More...
 
bool operator!= (const ConstVec &cvec) const
 Inequality operator. More...
 

Private Attributes

Cache for vectors
float m_cpx
 \( P_{x} \) More...
 
float m_cpy
 \( P_{y} \) More...
 
float m_cpz
 \( P_{y} \) More...
 
float m_ce
 \( E \) More...
 
float m_sumpt
 \( E \) More...
 

Detailed Description

Vector sum of constituents for subtractive overlap removal.

Definition at line 35 of file MissingETAssociation_v1.h.

Constructor & Destructor Documentation

◆ ConstVec() [1/3]

xAOD::MissingETAssociation_v1::ConstVec::ConstVec ( )

Default constructor.

◆ ConstVec() [2/3]

xAOD::MissingETAssociation_v1::ConstVec::ConstVec ( float  cpx,
float  cpy,
float  cpz,
float  ce,
float  sumpt 
)

Constructor with parameters.

◆ ConstVec() [3/3]

xAOD::MissingETAssociation_v1::ConstVec::ConstVec ( const IParticle ipar)

Constructor from IParticle.

◆ ~ConstVec()

xAOD::MissingETAssociation_v1::ConstVec::~ConstVec ( )

Data class destructor.

Member Function Documentation

◆ ce() [1/2]

float& xAOD::MissingETAssociation_v1::ConstVec::ce ( )

Returns reference to modifiable data word storing \( c_{e} \).

◆ ce() [2/2]

float xAOD::MissingETAssociation_v1::ConstVec::ce ( ) const

Returns \( c_{e} \).

◆ cpt()

float xAOD::MissingETAssociation_v1::ConstVec::cpt ( ) const

Returns \( c_{T} \).

Definition at line 87 of file MissingETAssociation_v1.cxx.

88  {
89  return sqrt(this->cpx()*this->cpx()+this->cpy()*this->cpy());
90  }

◆ cpx() [1/2]

float& xAOD::MissingETAssociation_v1::ConstVec::cpx ( )

Returns reference to modifiable data word storing \( c_{x} \).

◆ cpx() [2/2]

float xAOD::MissingETAssociation_v1::ConstVec::cpx ( ) const

Returns \( c_{x} \).

◆ cpy() [1/2]

float& xAOD::MissingETAssociation_v1::ConstVec::cpy ( )

Returns reference to modifiable data word storing \( c_{y} \).

◆ cpy() [2/2]

float xAOD::MissingETAssociation_v1::ConstVec::cpy ( ) const

Returns \( c_{y} \).

◆ cpz() [1/2]

float& xAOD::MissingETAssociation_v1::ConstVec::cpz ( )

Returns reference to modifiable data word storing \( c_{z} \).

◆ cpz() [2/2]

float xAOD::MissingETAssociation_v1::ConstVec::cpz ( ) const

Returns \( c_{z} \).

◆ operator!=()

Inequality operator.

◆ operator*=()

MissingETAssociation_v1::ConstVec & xAOD::MissingETAssociation_v1::ConstVec::operator*= ( float  scale)

Scale vector by multiplication.

Definition at line 64 of file MissingETAssociation_v1.cxx.

65  {
66  this->cpx() *= scale; this->cpy() *= scale; this->cpz() *= scale; this->ce() *= scale;
67  this->sumpt() *= scale;
68  return *this;
69  }

◆ operator+=()

MissingETAssociation_v1::ConstVec & xAOD::MissingETAssociation_v1::ConstVec::operator+= ( const ConstVec cvec)

Add another vector.

Definition at line 50 of file MissingETAssociation_v1.cxx.

51  {
52  this->cpx() += cvec.cpx(); this->cpy() += cvec.cpy(); this->cpz() += cvec.cpz(); this->ce() += cvec.ce();
53  this->sumpt() += cvec.sumpt();
54  return *this;
55  }

◆ operator-=()

MissingETAssociation_v1::ConstVec & xAOD::MissingETAssociation_v1::ConstVec::operator-= ( const ConstVec cvec)

Subtract another vector.

Definition at line 57 of file MissingETAssociation_v1.cxx.

58  {
59  this->cpx() -= cvec.cpx(); this->cpy() -= cvec.cpy(); this->cpz() -= cvec.cpz(); this->ce() -= cvec.ce();
60  this->sumpt() -= cvec.sumpt();
61  return *this;
62  }

◆ operator/=()

MissingETAssociation_v1::ConstVec & xAOD::MissingETAssociation_v1::ConstVec::operator/= ( float  scale)

Scale vector by division.

Definition at line 71 of file MissingETAssociation_v1.cxx.

72  {
73  if ( scale <1e-9 ) { this->cpx() = 0.; this->cpy() = 0.; this->cpz() = 0.; this->ce() = 0.; this->sumpt() = 0.; return *this; }
74  else { return this->operator*=(1./scale); }
75  }

◆ operator==()

bool xAOD::MissingETAssociation_v1::ConstVec::operator== ( const ConstVec cvec) const

Equality comparator.

Definition at line 77 of file MissingETAssociation_v1.cxx.

78  {
79  return
80  MissingETBase::Numerical::isEqual(this->cpx(),cvec.cpx()) &&
81  MissingETBase::Numerical::isEqual(this->cpy(),cvec.cpy()) &&
82  MissingETBase::Numerical::isEqual(this->cpz(),cvec.cpz()) &&
83  MissingETBase::Numerical::isEqual(this->ce(),cvec.ce()) &&
84  MissingETBase::Numerical::isEqual(this->sumpt(),cvec.sumpt());
85  }

◆ setCe()

void xAOD::MissingETAssociation_v1::ConstVec::setCe ( float  e)

Set \( c_{e} \).

◆ setCpx()

void xAOD::MissingETAssociation_v1::ConstVec::setCpx ( float  px)

Set \( c_{x} \).

◆ setCpy()

void xAOD::MissingETAssociation_v1::ConstVec::setCpy ( float  py)

Set \( c_{y} \).

◆ setCpz()

void xAOD::MissingETAssociation_v1::ConstVec::setCpz ( float  pz)

Set \( c_{z} \).

◆ setSumpt()

void xAOD::MissingETAssociation_v1::ConstVec::setSumpt ( float  sumpt)

Set sumpt.

◆ sumpt() [1/2]

float& xAOD::MissingETAssociation_v1::ConstVec::sumpt ( )

Returns reference to modifiable data word storing sum of component pt.

◆ sumpt() [2/2]

float xAOD::MissingETAssociation_v1::ConstVec::sumpt ( ) const

Returns sum of component pt.

Member Data Documentation

◆ m_ce

float xAOD::MissingETAssociation_v1::ConstVec::m_ce
private

\( E \)

Definition at line 83 of file MissingETAssociation_v1.h.

◆ m_cpx

float xAOD::MissingETAssociation_v1::ConstVec::m_cpx
private

\( P_{x} \)

Definition at line 80 of file MissingETAssociation_v1.h.

◆ m_cpy

float xAOD::MissingETAssociation_v1::ConstVec::m_cpy
private

\( P_{y} \)

Definition at line 81 of file MissingETAssociation_v1.h.

◆ m_cpz

float xAOD::MissingETAssociation_v1::ConstVec::m_cpz
private

\( P_{y} \)

Definition at line 82 of file MissingETAssociation_v1.h.

◆ m_sumpt

float xAOD::MissingETAssociation_v1::ConstVec::m_sumpt
private

\( E \)

Definition at line 84 of file MissingETAssociation_v1.h.


The documentation for this class was generated from the following files:
yodamerge_tmp.scale
scale
Definition: yodamerge_tmp.py:138
xAOD::e
setPy e
Definition: CompositeParticle_v1.cxx:166
xAOD::MissingETAssociation_v1::ConstVec::cpy
float cpy() const
Returns .
xAOD::MissingETAssociation_v1::ConstVec::sumpt
float sumpt() const
Returns sum of component pt.
xAOD::MissingETAssociation_v1::ConstVec::cpz
float cpz() const
Returns .
xAOD::MissingETAssociation_v1::ConstVec::operator*=
ConstVec & operator*=(float scale)
Scale vector by multiplication.
Definition: MissingETAssociation_v1.cxx:64
MissingETBase::Numerical::isEqual
static bool isEqual(double x, double y)
Test of equality.
Definition: MissingETBase.h:119
xAOD::MissingETAssociation_v1::ConstVec::cpx
float cpx() const
Returns .
xAOD::MissingETAssociation_v1::ConstVec::ce
float ce() const
Returns .