16#ifndef ROOT_Math_GenVector_Cylindrical3D
17#define ROOT_Math_GenVector_Cylindrical3D 1
63 template <
class CoordSystem >
77 { dest[0] =
fRho; dest[1] =
fZ; dest[2] =
fPhi; }
173 template <
class CoordSystem >
195 T
x()
const {
return X();}
196 T
y()
const {
return Y();}
197 T
z()
const {
return Z(); }
203#if defined(__ROOTCLING__) || defined(G__DICTIONARY)
215 void SetTheta(
Scalar theta);
234#if defined(__ROOTCLING__) || defined(G__DICTIONARY)
249#if defined(__ROOTCLING__) || defined(G__DICTIONARY)
263void Cylindrical3D<T>::SetY(Scalar yy) {
264 GenVector_exception
e(
"Cylindrical3D::SetY() is not supposed to be called");
266 Cartesian3D<Scalar>
v(*
this);
v.SetY(yy); *
this = Cylindrical3D<Scalar>(
v);
269void Cylindrical3D<T>::SetR(Scalar
r) {
270 GenVector_exception
e(
"Cylindrical3D::SetR() is not supposed to be called");
272 Polar3D<Scalar>
v(*
this);
v.SetR(
r);
273 *
this = Cylindrical3D<Scalar>(
v);
Class describing a 3D cartesian coordinate system (x, y, z coordinates).
Class describing a cylindrical coordinate system based on rho, z and phi.
void GetCoordinates(Scalar &rho, Scalar &zz, Scalar &phi) const
get internal data into 3 Scalar numbers ( rho, z , phi)
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
bool operator!=(const Cylindrical3D &rhs) const
void SetXYZ(Scalar x, Scalar y, Scalar z)
set all values using cartesian coordinates
void Negate()
negate the vector
constexpr Cylindrical3D() noexcept=default
Default constructor with rho=z=phi=0.
void SetZ(T zz)
set the z coordinate value keeping rho and phi constant
void Scale(T a)
scale by a scalar quantity a – for cylindrical coords only rho and z change
constexpr Cylindrical3D(const CoordSystem &v)
Construct from any Vector or coordinate system implementing Rho(), Z() and Phi().
void SetCoordinates(Scalar rho, Scalar zz, Scalar phi)
Set internal data based on 3 Scalar numbers ( rho, z , phi).
static constexpr unsigned int Dimension
void SetRho(T rho)
set the rho coordinate value keeping z and phi constant
void SetCoordinates(const Scalar src[])
Set internal data based on an array of 3 Scalar numbers ( rho, z , phi).
void GetCoordinates(Scalar dest[]) const
get internal data into an array of 3 Scalar numbers ( rho, z , phi)
Cylindrical3D & operator=(const CoordSystem &c)
generic assignment operator from any coordinate system implementing Rho(), Z() and Phi()
Class describing a cylindrical coordinate system based on eta (pseudorapidity) instead of z.
Class describing a polar coordinate system based on r, theta and phi Phi is restricted to be in the r...
Namespace for new Math classes and functions.
Scalar Eta_FromRhoZ(Scalar rho, Scalar z)
Calculate eta given rho and zeta.
VecExpr< UnaryOp< Sqrt< T >, VecExpr< A, T, D >, T >, T, D > sqrt(const VecExpr< A, T, D > &rhs)
Rotation3D::Scalar Scalar