ROOTPWA
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
threeVec Class Reference

#include <Vec.h>

Public Member Functions

 threeVec ()
 threeVec (double, double, double)
 threeVec (const threeVec &)
 ~threeVec ()
threeVec operator+ (const threeVec &) const
threeVec operator- (const threeVec &) const
threeVec operator- () const
double operator* (const threeVec &) const
threeVec operator/ (const threeVec &) const
threeVec & operator= (const threeVec &)
threeVec & operator+= (const threeVec &)
threeVec & operator-= (const threeVec &)
threeVec & operator*= (double)
const threeVec & print (std::ostream &=std::cout) const
threeVec & scan (std::istream &is=std::cin)
threeVec write (std::ostream &) const
threeVec read (std::istream &)
double & operator[] (const int i)
const double & operator[] (const int i) const
double & el (const int i)
const double & el (const int i) const
threeVec set (double, double, double)
int operator== (const threeVec &) const
int operator!= (const threeVec &) const
int operator< (const threeVec &) const
int operator> (const threeVec &) const
int operator>= (const threeVec &) const
int operator<= (const threeVec &) const
double x () const
double y () const
double z () const
double r () const
double theta () const
double cosTheta () const
double phi () const
double len () const
double lenSq () const
threeVec & x (double x)
threeVec & y (double y)
threeVec & z (double z)
threeVec & cartesian (double x, double y, double z)
threeVec & polar (double r, double theta, double phi)
double operator~ () const

Private Member Functions

void _init (double, double, double)

Private Attributes

double _x
double _y
double _z

Friends

threeVec operator* (double, const threeVec &)
threeVec operator* (const threeVec &, double)

Detailed Description

Definition at line 11 of file Vec.h.

Constructor & Destructor Documentation

threeVec::threeVec ( )

Definition at line 14 of file Vec.cc.

threeVec::threeVec ( double  x,
double  y,
double  z 
)

Definition at line 19 of file Vec.cc.

threeVec::threeVec ( const threeVec &  V)

Definition at line 24 of file Vec.cc.

References _x, _y, and _z.

threeVec::~threeVec ( )

Definition at line 29 of file Vec.cc.

Member Function Documentation

void threeVec::_init ( double  x,
double  y,
double  z 
)
private

Definition at line 7 of file Vec.cc.

threeVec & threeVec::cartesian ( double  x,
double  y,
double  z 
)

Definition at line 306 of file Vec.cc.

double threeVec::cosTheta ( ) const

Definition at line 261 of file Vec.cc.

double& threeVec::el ( const int  i)
inline

Definition at line 46 of file Vec.h.

References operator[]().

Referenced by matrix< T >::operator*(), and lorentzTransform::set().

const double& threeVec::el ( const int  i) const
inline

Definition at line 47 of file Vec.h.

References operator[]().

double threeVec::len ( ) const

Definition at line 271 of file Vec.cc.

Referenced by event::baryonPlane(), event::mesonPlane(), and lorentzTransform::set().

double threeVec::lenSq ( ) const
int threeVec::operator!= ( const threeVec &  V) const

Definition at line 211 of file Vec.cc.

double threeVec::operator* ( const threeVec &  V) const

Definition at line 53 of file Vec.cc.

References _x, _y, and _z.

threeVec & threeVec::operator*= ( double  a)

Definition at line 99 of file Vec.cc.

References a.

threeVec threeVec::operator+ ( const threeVec &  V) const

Definition at line 34 of file Vec.cc.

References _x, _y, and _z.

threeVec & threeVec::operator+= ( const threeVec &  V)

Definition at line 83 of file Vec.cc.

References _x, _y, and _z.

threeVec threeVec::operator- ( const threeVec &  V) const

Definition at line 41 of file Vec.cc.

References _x, _y, and _z.

threeVec threeVec::operator- ( ) const

Definition at line 48 of file Vec.cc.

threeVec & threeVec::operator-= ( const threeVec &  V)

Definition at line 91 of file Vec.cc.

References _x, _y, and _z.

threeVec threeVec::operator/ ( const threeVec &  V) const

Definition at line 58 of file Vec.cc.

References _x, _y, and _z.

int threeVec::operator< ( const threeVec &  V) const

Definition at line 216 of file Vec.cc.

References lenSq().

int threeVec::operator<= ( const threeVec &  V) const

Definition at line 231 of file Vec.cc.

References lenSq().

threeVec & threeVec::operator= ( const threeVec &  V)

Definition at line 75 of file Vec.cc.

References _x, _y, and _z.

int threeVec::operator== ( const threeVec &  V) const

Definition at line 204 of file Vec.cc.

References _x, _y, and _z.

int threeVec::operator> ( const threeVec &  V) const

Definition at line 221 of file Vec.cc.

References lenSq().

int threeVec::operator>= ( const threeVec &  V) const

Definition at line 226 of file Vec.cc.

References lenSq().

double & threeVec::operator[] ( const int  i)

Definition at line 151 of file Vec.cc.

Referenced by el().

const double & threeVec::operator[] ( const int  i) const

Definition at line 174 of file Vec.cc.

double threeVec::operator~ ( ) const

Definition at line 283 of file Vec.cc.

double threeVec::phi ( ) const
threeVec & threeVec::polar ( double  r,
double  theta,
double  phi 
)

Definition at line 312 of file Vec.cc.

const threeVec & threeVec::print ( std::ostream &  os = std::cout) const

Definition at line 107 of file Vec.cc.

Referenced by operator<<().

double threeVec::r ( ) const

Definition at line 251 of file Vec.cc.

threeVec threeVec::read ( std::istream &  is)

Definition at line 142 of file Vec.cc.

References read().

Referenced by read().

threeVec & threeVec::scan ( std::istream &  is = std::cin)

Definition at line 113 of file Vec.cc.

Referenced by operator>>().

threeVec threeVec::set ( double  x,
double  y,
double  z 
)

Definition at line 196 of file Vec.cc.

double threeVec::theta ( ) const
threeVec threeVec::write ( std::ostream &  os) const

Definition at line 133 of file Vec.cc.

References write().

Referenced by write().

double threeVec::x ( ) const

Definition at line 236 of file Vec.cc.

Referenced by lorentzTransform::set().

threeVec & threeVec::x ( double  x)

Definition at line 288 of file Vec.cc.

double threeVec::y ( ) const

Definition at line 241 of file Vec.cc.

Referenced by lorentzTransform::set().

threeVec & threeVec::y ( double  y)

Definition at line 294 of file Vec.cc.

double threeVec::z ( ) const

Definition at line 246 of file Vec.cc.

Referenced by lorentzTransform::set().

threeVec & threeVec::z ( double  z)

Definition at line 300 of file Vec.cc.

Friends And Related Function Documentation

threeVec operator* ( double  a,
const threeVec &  V 
)
friend

Definition at line 65 of file Vec.cc.

threeVec operator* ( const threeVec &  V,
double  a 
)
friend

Definition at line 70 of file Vec.cc.

Member Data Documentation

double threeVec::_x
private
double threeVec::_y
private
double threeVec::_z
private

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