EICd
EIC data model
eic::VectorXY Class Reference

#include <VectorXY.h>

Public Member Functions

 VectorXY ()
 
 VectorXY (double xx, double yy)
 
float & operator[] (unsigned i)
 
const float & operator[] (unsigned i) const
 
float mag () const
 
float r () const
 
float phi () const
 
 operator std::pair< float, float > () const
 
float dot (const VectorXY &rhs) const
 
VectorXY add (const VectorXY &rhs) const
 
VectorXY subtract (const VectorXY &rhs) const
 
VectorXY scale (double f) const
 

Public Attributes

float x {}
 [mm] or [GeV] More...
 
float y {}
 

Constructor & Destructor Documentation

◆ VectorXY() [1/2]

eic::VectorXY::VectorXY ( )
inline

◆ VectorXY() [2/2]

eic::VectorXY::VectorXY ( double  xx,
double  yy 
)
inline

Member Function Documentation

◆ add()

VectorXY eic::VectorXY::add ( const VectorXY rhs) const
inline

◆ dot()

float eic::VectorXY::dot ( const VectorXY rhs) const
inline

◆ mag()

float eic::VectorXY::mag ( ) const
inline

◆ operator std::pair< float, float >()

eic::VectorXY::operator std::pair< float, float > ( ) const
inline

◆ operator[]() [1/2]

float& eic::VectorXY::operator[] ( unsigned  i)
inline

◆ operator[]() [2/2]

const float& eic::VectorXY::operator[] ( unsigned  i) const
inline

◆ phi()

float eic::VectorXY::phi ( ) const
inline

◆ r()

float eic::VectorXY::r ( ) const
inline

◆ scale()

VectorXY eic::VectorXY::scale ( double  f) const
inline

◆ subtract()

VectorXY eic::VectorXY::subtract ( const VectorXY rhs) const
inline

Member Data Documentation

◆ x

float eic::VectorXY::x {}

[mm] or [GeV]

◆ y

float eic::VectorXY::y {}

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