16 #ifndef ROOT_Math_GenVector_Cylindrical3D
17 #define ROOT_Math_GenVector_Cylindrical3D 1
19 #ifndef ROOT_Math_Math
23 #ifndef ROOT_Math_GenVector_eta
65 template <
class CoordSystem >
98 { dest[0] =
fRho; dest[1] =
fZ; dest[2] =
fPhi; }
195 template <
class CoordSystem >
217 T x()
const {
return X();}
218 T y()
const {
return Y();}
219 T z()
const {
return Z(); }
225 #if defined(__MAKECINT__) || defined(G__DICTIONARY)
256 #ifndef ROOT_Math_GenVector_Cartesian3D
260 #if defined(__MAKECINT__) || defined(G__DICTIONARY)
261 #ifndef ROOT_Math_GenVector_GenVector_exception
264 #ifndef ROOT_Math_GenVector_CylindricalEta3D
267 #ifndef ROOT_Math_GenVector_Polar3D
281 #if defined(__MAKECINT__) || defined(G__DICTIONARY)
295 void Cylindrical3D<T>::SetY(
Scalar yy) {
296 GenVector_exception e(
"Cylindrical3D::SetY() is not supposed to be called");
298 Cartesian3D<Scalar>
v(*
this);
v.SetY(yy); *
this = Cylindrical3D<Scalar>(
v);
301 void Cylindrical3D<T>::SetR(
Scalar r) {
302 GenVector_exception e(
"Cylindrical3D::SetR() is not supposed to be called");
304 Polar3D<Scalar>
v(*
this);
v.SetR(r);
305 *
this = Cylindrical3D<Scalar>(
v);
309 GenVector_exception e(
"Cylindrical3D::SetTheta() is not supposed to be called");
311 Polar3D<Scalar>
v(*
this);
v.SetTheta(theta);
312 *
this = Cylindrical3D<Scalar>(
v);
315 void Cylindrical3D<T>::SetEta(
Scalar eta) {
316 GenVector_exception e(
"Cylindrical3D::SetEta() is not supposed to be called");
318 CylindricalEta3D<Scalar>
v(*
this);
v.SetEta(eta);
319 *
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
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)
#define dest(otri, vertexptr)
bool operator!=(const Cylindrical3D &rhs) const
std::complex< float_v > Z
void GetCoordinates(Scalar dest[]) const
get internal data into an array of 3 Scalar numbers ( rho, z , phi)