16 #ifndef ROOT_Math_GenVector_Cylindrical3D 17 #define ROOT_Math_GenVector_Cylindrical3D 1 61 template <
class CoordSystem >
94 { dest[0] =
fRho; dest[1] =
fZ; dest[2] =
fPhi; }
119 Scalar
Z()
const {
return fZ; }
163 void SetXYZ(Scalar
x, Scalar
y, Scalar
z);
190 template <
class CoordSystem >
212 T x()
const {
return X();}
213 T y()
const {
return Y();}
214 T z()
const {
return Z(); }
220 #if defined(__MAKECINT__) || defined(G__DICTIONARY) 228 void SetEta(Scalar eta);
232 void SetTheta(Scalar theta);
253 #if defined(__MAKECINT__) || defined(G__DICTIONARY) 268 #if defined(__MAKECINT__) || defined(G__DICTIONARY)
void GetCoordinates(Scalar &rho, Scalar &zz, Scalar &phi) const
get internal data into 3 Scalar numbers ( rho, z , phi)
void SetX(Scalar xx)
set the x coordinate value keeping y and z constant
Namespace for new ROOT classes and functions.
Cylindrical3D(Scalar rho, Scalar zz, Scalar phi)
Construct from rho eta and phi values.
Cylindrical3D(const Cylindrical3D &v)
copy constructor
Class describing a cylindrical coordinate system based on eta (pseudorapidity) instead of z...
void SetPhi(T phi)
set the phi coordinate value keeping rho and z constant
Cylindrical3D(const CoordSystem &v)
Construct from any Vector or coordinate system implementing Rho(), Z() and Phi()
Cylindrical3D & operator=(const Cylindrical3D &v)
assignment operator
VecExpr< UnaryOp< Sqrt< T >, VecExpr< A, T, D >, T >, T, D > sqrt(const VecExpr< A, T, D > &rhs)
void SetR(const T &r)
set the r coordinate value keeping theta and phi constant
Class describing a cylindrical coordinate system based on rho, z and phi.
bool operator!=(const Cylindrical3D &rhs) const
void SetY(Scalar yy)
set the y coordinate value keeping x and z constant
void Negate()
negate the vector
void SetCoordinates(Scalar rho, Scalar zz, Scalar phi)
Set internal data based on 3 Scalar numbers ( rho, z , phi)
Cylindrical3D()
Default constructor with rho=z=phi=0.
void SetTheta(const T &theta)
set the theta coordinate value keeping r and phi constant
void SetXYZ(Scalar x, Scalar y, Scalar z)
set all values using cartesian coordinates
void SetRho(T rho)
set the rho coordinate value keeping z and phi constant
Scalar Eta_FromRhoZ(Scalar rho, Scalar z)
Calculate eta given rho and zeta.
void Scale(T a)
scale by a scalar quantity a – for cylindrical coords only rho and z change
void SetEta(T eta)
set the eta coordinate value keeping rho and phi constant
void SetCoordinates(const Scalar src[])
Set internal data based on an array of 3 Scalar numbers ( rho, z , phi)
void SetZ(T zz)
set the z coordinate value keeping rho and phi constant
double atan2(double, double)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
bool operator==(const Cylindrical3D &rhs) const
Exact component-by-component equality.
Namespace for new Math classes and functions.
#define dest(otri, vertexptr)
void GetCoordinates(Scalar dest[]) const
get internal data into an array of 3 Scalar numbers ( rho, z , phi)
Class describing a polar coordinate system based on r, theta and phi Phi is restricted to be in the r...