class ROOT::Math::Cartesian3D<Double32_t>

Function Members (Methods)

public:
~Cartesian3D<Double32_t>()
ROOT::Math::Cartesian3D<Double32_t>Cartesian3D<Double32_t>()
ROOT::Math::Cartesian3D<Double32_t>Cartesian3D<Double32_t>(const ROOT::Math::Cartesian3D<Double32_t>& v)
ROOT::Math::Cartesian3D<Double32_t>Cartesian3D<Double32_t>(ROOT::Math::Cartesian3D<Double32_t>::Scalar xx, ROOT::Math::Cartesian3D<Double32_t>::Scalar yy, ROOT::Math::Cartesian3D<Double32_t>::Scalar zz)
ROOT::Math::Cartesian3D<Double32_t>::ScalarEta() const
voidGetCoordinates(ROOT::Math::Cartesian3D<Double32_t>::Scalar* dest) const
voidGetCoordinates(ROOT::Math::Cartesian3D<Double32_t>::Scalar& xx, ROOT::Math::Cartesian3D<Double32_t>::Scalar& yy, ROOT::Math::Cartesian3D<Double32_t>::Scalar& zz) const
ROOT::Math::Cartesian3D<Double32_t>::ScalarMag2() const
voidNegate()
booloperator!=(const ROOT::Math::Cartesian3D<Double32_t>& rhs) const
ROOT::Math::Cartesian3D<Double32_t>&operator=(const ROOT::Math::Cartesian3D<Double32_t>& v)
booloperator==(const ROOT::Math::Cartesian3D<Double32_t>& rhs) const
ROOT::Math::Cartesian3D<Double32_t>::ScalarPerp2() const
ROOT::Math::Cartesian3D<Double32_t>::ScalarPhi() const
ROOT::Math::Cartesian3D<Double32_t>::ScalarR() const
ROOT::Math::Cartesian3D<Double32_t>::ScalarRho() const
voidScale(ROOT::Math::Cartesian3D<Double32_t>::Scalar a)
voidSetCoordinates(const ROOT::Math::Cartesian3D<Double32_t>::Scalar* src)
voidSetCoordinates(ROOT::Math::Cartesian3D<Double32_t>::Scalar xx, ROOT::Math::Cartesian3D<Double32_t>::Scalar yy, ROOT::Math::Cartesian3D<Double32_t>::Scalar zz)
voidSetEta(ROOT::Math::Cartesian3D<Double32_t>::Scalar eta)
voidSetPhi(ROOT::Math::Cartesian3D<Double32_t>::Scalar phi)
voidSetR(ROOT::Math::Cartesian3D<Double32_t>::Scalar r)
voidSetRho(ROOT::Math::Cartesian3D<Double32_t>::Scalar rho)
voidSetTheta(ROOT::Math::Cartesian3D<Double32_t>::Scalar theta)
voidSetX(ROOT::Math::Cartesian3D<Double32_t>::Scalar xx)
voidSetXYZ(ROOT::Math::Cartesian3D<Double32_t>::Scalar xx, ROOT::Math::Cartesian3D<Double32_t>::Scalar yy, ROOT::Math::Cartesian3D<Double32_t>::Scalar zz)
voidSetY(ROOT::Math::Cartesian3D<Double32_t>::Scalar yy)
voidSetZ(ROOT::Math::Cartesian3D<Double32_t>::Scalar zz)
ROOT::Math::Cartesian3D<Double32_t>::ScalarTheta() const
ROOT::Math::Cartesian3D<Double32_t>::ScalarX() const
Double32_tx() const
ROOT::Math::Cartesian3D<Double32_t>::ScalarY() const
Double32_ty() const
ROOT::Math::Cartesian3D<Double32_t>::ScalarZ() const
Double32_tz() const

Data Members

private:
Double32_tfXx coordinate
Double32_tfYy coordinate
Double32_tfZz coordinate

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Cartesian3D & operator=(const ROOT::Math::Cartesian3D<Double32_t>& v)
      assignment operator

void SetCoordinates(const ROOT::Math::Cartesian3D<Double32_t>::Scalar* src)
      Set internal data based on an array of 3 Scalar numbers

{ fX=src[0]; fY=src[1]; fZ=src[2]; }
void GetCoordinates(ROOT::Math::Cartesian3D<Double32_t>::Scalar* dest) const
      get internal data into an array of 3 Scalar numbers

{ dest[0] = fX; dest[1] = fY; dest[2] = fZ; }
void SetCoordinates(ROOT::Math::Cartesian3D<Double32_t>::Scalar xx, ROOT::Math::Cartesian3D<Double32_t>::Scalar yy, ROOT::Math::Cartesian3D<Double32_t>::Scalar zz)
      Set internal data based on 3 Scalar numbers

{ fX=xx; fY=yy; fZ=zz; }
void GetCoordinates(ROOT::Math::Cartesian3D<Double32_t>::Scalar& xx, ROOT::Math::Cartesian3D<Double32_t>::Scalar& yy, ROOT::Math::Cartesian3D<Double32_t>::Scalar& zz) const
      get internal data into 3 Scalar numbers

{xx=fX; yy=fY; zz=fZ;}
Scalar X()
{ return fX;}
Scalar Y()
{ return fY;}
Scalar Z()
{ return fZ;}
Scalar Mag2()
{ return fX*fX + fY*fY + fZ*fZ;}
Scalar Perp2()
{ return fX*fX + fY*fY ;}
Scalar Rho()
{ return std::sqrt( Perp2());}
Scalar R()
{ return std::sqrt( Mag2());}
Scalar Theta()
Scalar Phi()
{ return (fX==0 && fY==0) ? 0 : atan2(fY,fX);}
Scalar Eta()
 pseudorapidity
void SetX(ROOT::Math::Cartesian3D<Double32_t>::Scalar xx)
       set the x coordinate value keeping y and z constant

{ fX = xx; }
void SetY(ROOT::Math::Cartesian3D<Double32_t>::Scalar yy)
       set the y coordinate value keeping x and z constant

{ fY = yy; }
void SetZ(ROOT::Math::Cartesian3D<Double32_t>::Scalar zz)
       set the z coordinate value keeping x and y constant

{ fZ = zz; }
void SetXYZ(ROOT::Math::Cartesian3D<Double32_t>::Scalar xx, ROOT::Math::Cartesian3D<Double32_t>::Scalar yy, ROOT::Math::Cartesian3D<Double32_t>::Scalar zz)
       set all values using cartesian coordinates

void Scale(ROOT::Math::Cartesian3D<Double32_t>::Scalar a)
      scale the vector by a scalar quantity a

{ fX *= a; fY *= a; fZ *= a; }
void Negate()
      negate the vector

{ fX = -fX; fY = -fY; fZ = -fZ; }
T x()
 ============= Compatibility section ==================
 The following make this coordinate system look enough like a CLHEP
 vector that an assignment member template can work with either
{ return X();}
T y()
{ return Y();}
T z()
{ return Z(); }
void SetR(ROOT::Math::Cartesian3D<Double32_t>::Scalar r)
 ====== Set member functions for coordinates in other systems =======
void SetTheta(ROOT::Math::Cartesian3D<Double32_t>::Scalar theta)
void SetPhi(ROOT::Math::Cartesian3D<Double32_t>::Scalar phi)
void SetRho(ROOT::Math::Cartesian3D<Double32_t>::Scalar rho)
void SetEta(ROOT::Math::Cartesian3D<Double32_t>::Scalar eta)

Last change: root/mathcore:$Id: Cartesian3D.h 24923 2008-07-23 15:43:05Z moneta $
Last generated: 2008-08-06 08:06
Copyright (c) 2005 , LCG ROOT MathLib Team *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.