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; }
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)
232 void SetTheta(
Scalar theta);
253 #if defined(__MAKECINT__) || defined(G__DICTIONARY)
268 #if defined(__MAKECINT__) || defined(G__DICTIONARY)
282 void Cylindrical3D<T>::SetY(
Scalar yy) {
283 GenVector_exception
e(
"Cylindrical3D::SetY() is not supposed to be called");
285 Cartesian3D<Scalar>
v(*
this);
v.SetY(yy); *
this = Cylindrical3D<Scalar>(
v);
288 void Cylindrical3D<T>::SetR(
Scalar r) {
289 GenVector_exception
e(
"Cylindrical3D::SetR() is not supposed to be called");
291 Polar3D<Scalar>
v(*
this);
v.SetR(r);
292 *
this = Cylindrical3D<Scalar>(
v);
295 void Cylindrical3D<T>::SetTheta(
Scalar theta) {
296 GenVector_exception
e(
"Cylindrical3D::SetTheta() is not supposed to be called");
298 Polar3D<Scalar>
v(*
this);
v.SetTheta(theta);
299 *
this = Cylindrical3D<Scalar>(
v);
302 void Cylindrical3D<T>::SetEta(
Scalar eta) {
303 GenVector_exception
e(
"Cylindrical3D::SetEta() is not supposed to be called");
305 CylindricalEta3D<Scalar>
v(*
this);
v.SetEta(eta);
306 *
this = Cylindrical3D<Scalar>(
v);
Cylindrical3D(Scalar rho, Scalar zz, Scalar phi)
Construct from rho eta and phi values.
Cylindrical3D(const Cylindrical3D &v)
copy constructor
bool operator==(const Cylindrical3D &rhs) const
Exact component-by-component equality.
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)
Class describing a cylindrical coordinate system based on rho, z and phi.
void Negate()
negate the vector
void SetCoordinates(Scalar rho, Scalar zz, Scalar phi)
Set internal data based on 3 Scalar numbers ( rho, z , phi)
void GetCoordinates(Scalar &rho, Scalar &zz, Scalar &phi) const
get internal data into 3 Scalar numbers ( rho, z , phi)
Cylindrical3D()
Default constructor with rho=z=phi=0.
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 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
#define dest(otri, vertexptr)
bool operator!=(const Cylindrical3D &rhs) const
Rotation3D::Scalar Scalar
void GetCoordinates(Scalar dest[]) const
get internal data into an array of 3 Scalar numbers ( rho, z , phi)