ROOT
6.07/01
Reference Guide
|
Class describing a polar coordinate system based on r, theta and phi Phi is restricted to be in the range [-PI,PI)
Class describing a 3D Polar coordinate system (r, theta, phi coordinates)
Public Types | |
typedef T | Scalar |
Public Member Functions | |
Polar3D () | |
Default constructor with r=theta=phi=0. More... | |
Polar3D (T r, T theta, T phi) | |
Construct from the polar coordinates: r, theta and phi. More... | |
template<class CoordSystem > | |
Polar3D (const CoordSystem &v) | |
Construct from any Vector or coordinate system implementing R(), Theta() and Phi() More... | |
Polar3D (const Polar3D &v) | |
copy constructor More... | |
Polar3D & | operator= (const Polar3D &v) |
assignment operator More... | |
void | SetCoordinates (const Scalar src[]) |
Set internal data based on an array of 3 Scalar numbers. More... | |
void | GetCoordinates (Scalar dest[]) const |
get internal data into an array of 3 Scalar numbers More... | |
void | SetCoordinates (Scalar r, Scalar theta, Scalar phi) |
Set internal data based on 3 Scalar numbers. More... | |
void | GetCoordinates (Scalar &r, Scalar &theta, Scalar &phi) const |
get internal data into 3 Scalar numbers More... | |
Scalar | R () const |
Scalar | Phi () const |
Scalar | Theta () const |
Scalar | Rho () const |
Scalar | X () const |
Scalar | Y () const |
Scalar | Z () const |
Scalar | Mag2 () const |
Scalar | Perp2 () const |
Scalar | Eta () const |
void | SetR (const T &r) |
set the r coordinate value keeping theta and phi constant More... | |
void | SetTheta (const T &theta) |
set the theta coordinate value keeping r and phi constant More... | |
void | SetPhi (const T &phi) |
set the phi coordinate value keeping r and theta constant More... | |
void | SetXYZ (Scalar x, Scalar y, Scalar z) |
set all values using cartesian coordinates More... | |
void | Scale (T a) |
scale by a scalar quantity - for polar coordinates r changes More... | |
void | Negate () |
negate the vector More... | |
template<class CoordSystem > | |
Polar3D & | operator= (const CoordSystem &c) |
generic assignment operator from any coordinate system More... | |
bool | operator== (const Polar3D &rhs) const |
Exact equality. More... | |
bool | operator!= (const Polar3D &rhs) const |
T | x () const |
T | y () const |
T | z () const |
Private Member Functions | |
void | Restrict () |
Static Private Member Functions | |
static Scalar | pi () |
Private Attributes | |
T | fR |
T | fTheta |
T | fPhi |
#include <Math/GenVector/Polar3D.h>
typedef T ROOT::Math::Polar3D< T >::Scalar |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
negate the vector
Definition at line 185 of file Polar3D.h.
Referenced by ROOT::Math::Polar3D< T >::Scale().
|
inline |
|
inline |
|
inline |
|
inline |
Exact equality.
Definition at line 205 of file Polar3D.h.
Referenced by ROOT::Math::Polar3D< T >::operator!=().
|
inline |
|
inline |
Definition at line 114 of file Polar3D.h.
Referenced by ROOT::Math::Cartesian3D< Double32_t >::Cartesian3D(), ROOT::Math::Polar3D< T >::operator=(), and ROOT::Math::Cartesian3D< Double32_t >::operator=().
|
inlinestaticprivate |
Definition at line 161 of file Polar3D.h.
Referenced by ROOT::Math::Polar3D< T >::Negate(), and ROOT::Math::Polar3D< T >::Restrict().
|
inline |
Definition at line 113 of file Polar3D.h.
Referenced by ROOT::Math::Polar3D< T >::operator=().
|
inlineprivate |
Definition at line 162 of file Polar3D.h.
Referenced by ROOT::Math::Polar3D< T >::Polar3D(), ROOT::Math::Polar3D< T >::SetCoordinates(), and ROOT::Math::Polar3D< T >::SetPhi().
|
inline |
Definition at line 116 of file Polar3D.h.
Referenced by ROOT::Math::Cartesian3D< Double32_t >::Cartesian3D(), ROOT::Math::Cartesian3D< Double32_t >::operator=(), ROOT::Math::Polar3D< T >::Perp2(), ROOT::Math::Polar3D< T >::X(), and ROOT::Math::Polar3D< T >::Y().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 115 of file Polar3D.h.
Referenced by ROOT::Math::Polar3D< T >::operator=().
|
inline |
Definition at line 117 of file Polar3D.h.
Referenced by ROOT::Math::Polar3D< T >::x().
|
inline |
|
inline |
Definition at line 118 of file Polar3D.h.
Referenced by ROOT::Math::Polar3D< T >::y().
|
inline |
|
inline |
Definition at line 119 of file Polar3D.h.
Referenced by ROOT::Math::Cartesian3D< Double32_t >::operator=(), and ROOT::Math::Polar3D< T >::z().
|
inline |
|
private |
Definition at line 242 of file Polar3D.h.
Referenced by ROOT::Math::Polar3D< T >::GetCoordinates(), ROOT::Math::Polar3D< T >::Negate(), ROOT::Math::Polar3D< T >::operator=(), ROOT::Math::Polar3D< T >::operator==(), ROOT::Math::Polar3D< T >::Phi(), ROOT::Math::Polar3D< T >::Restrict(), ROOT::Math::Polar3D< T >::SetCoordinates(), ROOT::Math::Polar3D< T >::SetPhi(), ROOT::Math::Polar3D< T >::X(), and ROOT::Math::Polar3D< T >::Y().
|
private |
Definition at line 240 of file Polar3D.h.
Referenced by ROOT::Math::Polar3D< T >::Eta(), ROOT::Math::Polar3D< T >::GetCoordinates(), ROOT::Math::Polar3D< T >::Mag2(), ROOT::Math::Polar3D< T >::operator=(), ROOT::Math::Polar3D< T >::operator==(), ROOT::Math::Polar3D< T >::R(), ROOT::Math::Polar3D< T >::Rho(), ROOT::Math::Polar3D< T >::Scale(), ROOT::Math::Polar3D< T >::SetCoordinates(), ROOT::Math::Polar3D< T >::SetR(), and ROOT::Math::Polar3D< T >::Z().
|
private |
Definition at line 241 of file Polar3D.h.
Referenced by ROOT::Math::Polar3D< T >::Eta(), ROOT::Math::Polar3D< T >::GetCoordinates(), ROOT::Math::Polar3D< T >::Negate(), ROOT::Math::Polar3D< T >::operator=(), ROOT::Math::Polar3D< T >::operator==(), ROOT::Math::Polar3D< T >::Rho(), ROOT::Math::Polar3D< T >::SetCoordinates(), ROOT::Math::Polar3D< T >::SetTheta(), ROOT::Math::Polar3D< T >::Theta(), and ROOT::Math::Polar3D< T >::Z().