class ROOT::Math::Cylindrical3D<double>


      Class describing a cylindrical coordinate system based on rho, z and phi.
      The base coordinates are rho (transverse component) , z and phi
      Phi is restricted to be in the range [-PI,PI)

      @ingroup GenVector

This class is also known as (typedefs to this class)

ROOT::Math::PositionVector3D<ROOT::Math::Cylindrical3D<double>,ROOT::Math::DefaultCoordinateSystemTag>::CoordinateType, ROOT::Math::DisplacementVector3D<ROOT::Math::Cylindrical3D<double>,ROOT::Math::DefaultCoordinateSystemTag>::CoordinateType

Function Members (Methods)

public:
~Cylindrical3D<double>()
ROOT::Math::Cylindrical3D<double>Cylindrical3D<double>()
ROOT::Math::Cylindrical3D<double>Cylindrical3D<double>(const ROOT::Math::Cylindrical3D<double>& v)
ROOT::Math::Cylindrical3D<double>Cylindrical3D<double>(ROOT::Math::Cylindrical3D<double>::Scalar rho, ROOT::Math::Cylindrical3D<double>::Scalar zz, ROOT::Math::Cylindrical3D<double>::Scalar phi)
ROOT::Math::Cylindrical3D<double>::ScalarEta() const
voidGetCoordinates(ROOT::Math::Cylindrical3D<double>::Scalar* dest) const
voidGetCoordinates(ROOT::Math::Cylindrical3D<double>::Scalar& rho, ROOT::Math::Cylindrical3D<double>::Scalar& zz, ROOT::Math::Cylindrical3D<double>::Scalar& phi) const
ROOT::Math::Cylindrical3D<double>::ScalarMag2() const
voidNegate()
booloperator!=(const ROOT::Math::Cylindrical3D<double>& rhs) const
ROOT::Math::Cylindrical3D<double>&operator=(const ROOT::Math::Cylindrical3D<double>& v)
booloperator==(const ROOT::Math::Cylindrical3D<double>& rhs) const
ROOT::Math::Cylindrical3D<double>::ScalarPerp2() const
ROOT::Math::Cylindrical3D<double>::ScalarPhi() const
ROOT::Math::Cylindrical3D<double>::ScalarR() const
ROOT::Math::Cylindrical3D<double>::ScalarRho() const
voidScale(double a)
voidSetCoordinates(const ROOT::Math::Cylindrical3D<double>::Scalar* src)
voidSetCoordinates(ROOT::Math::Cylindrical3D<double>::Scalar rho, ROOT::Math::Cylindrical3D<double>::Scalar zz, ROOT::Math::Cylindrical3D<double>::Scalar phi)
voidSetEta(ROOT::Math::Cylindrical3D<double>::Scalar eta)
voidSetPhi(double phi)
voidSetR(ROOT::Math::Cylindrical3D<double>::Scalar r)
voidSetRho(double rho)
voidSetTheta(ROOT::Math::Cylindrical3D<double>::Scalar theta)
voidSetX(ROOT::Math::Cylindrical3D<double>::Scalar xx)
voidSetXYZ(ROOT::Math::Cylindrical3D<double>::Scalar xx, ROOT::Math::Cylindrical3D<double>::Scalar yy, ROOT::Math::Cylindrical3D<double>::Scalar zz)
voidSetY(ROOT::Math::Cylindrical3D<double>::Scalar yy)
voidSetZ(double zz)
ROOT::Math::Cylindrical3D<double>::ScalarTheta() const
ROOT::Math::Cylindrical3D<double>::ScalarX() const
doublex() const
ROOT::Math::Cylindrical3D<double>::ScalarY() const
doubley() const
ROOT::Math::Cylindrical3D<double>::ScalarZ() const
doublez() const
private:
static ROOT::Math::Cylindrical3D<double>::Scalarpi()
voidRestrict()

Data Members

private:
doublefPhi
doublefRho
doublefZ

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Cylindrical3D & operator=(const ROOT::Math::Cylindrical3D<double>& v)
      assignment operator

void SetCoordinates(const ROOT::Math::Cylindrical3D<double>::Scalar* src)
      Set internal data based on an array of 3 Scalar numbers ( rho, z , phi)

{ fRho=src[0]; fZ=src[1]; fPhi=src[2]; Restrict(); }
void GetCoordinates(ROOT::Math::Cylindrical3D<double>::Scalar* dest) const
      get internal data into an array of 3 Scalar numbers ( rho, z , phi)

{ dest[0] = fRho; dest[1] = fZ; dest[2] = fPhi; }
void SetCoordinates(ROOT::Math::Cylindrical3D<double>::Scalar rho, ROOT::Math::Cylindrical3D<double>::Scalar zz, ROOT::Math::Cylindrical3D<double>::Scalar phi)
      Set internal data based on 3 Scalar numbers ( rho, z , phi)

{ fRho=rho; fZ=zz; fPhi=phi; Restrict(); }
void GetCoordinates(ROOT::Math::Cylindrical3D<double>::Scalar& rho, ROOT::Math::Cylindrical3D<double>::Scalar& zz, ROOT::Math::Cylindrical3D<double>::Scalar& phi) const
      get internal data into 3 Scalar numbers ( rho, z , phi)

{rho=fRho; zz=fZ; phi=fPhi;}
Scalar pi()
{ return M_PI; }
void Restrict()
Scalar Rho()
 accessors
{ return fRho; }
Scalar Z()
{ return fZ; }
Scalar Phi()
{ return fPhi; }
Scalar X()
{ return fRho*std::cos(fPhi); }
Scalar Y()
{ return fRho*std::sin(fPhi); }
Scalar Mag2()
{ return fRho*fRho + fZ*fZ; }
Scalar R()
{ return std::sqrt( Mag2()); }
Scalar Perp2()
{ return fRho*fRho; }
Scalar Theta()
{ return (fRho==0 && fZ==0 ) ? 0 : atan2(fRho,fZ); }
Scalar Eta()
 pseudorapidity - use same implementation as in Cartesian3D
void SetRho(double rho)
 setters (only for data members)

       set the rho coordinate value keeping z and phi constant

void SetZ(double zz)
       set the z coordinate value keeping rho and phi constant

void SetPhi(double phi)
       set the phi coordinate value keeping rho and z constant

void SetXYZ(ROOT::Math::Cylindrical3D<double>::Scalar xx, ROOT::Math::Cylindrical3D<double>::Scalar yy, ROOT::Math::Cylindrical3D<double>::Scalar zz)
       set all values using cartesian coordinates

void Scale(double a)
      scale by a scalar quantity a --
      for cylindrical coords only rho and z change

Negate()
bool operator==(const ROOT::Math::Cylindrical3D<double>& rhs) const
      Exact component-by-component equality

bool operator!=(const ROOT::Math::Cylindrical3D<double>& rhs) const
{return !(operator==(rhs));}
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 SetX(ROOT::Math::Cylindrical3D<double>::Scalar xx)
 ============= Specializations for improved speed ==================
 (none)
 ====== Set member functions for coordinates in other systems =======
void SetY(ROOT::Math::Cylindrical3D<double>::Scalar yy)
void SetEta(ROOT::Math::Cylindrical3D<double>::Scalar eta)
void SetR(ROOT::Math::Cylindrical3D<double>::Scalar r)
void SetTheta(ROOT::Math::Cylindrical3D<double>::Scalar theta)

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

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.