16#ifndef ROOT_Math_GenVector_Cylindrical3D
17#define ROOT_Math_GenVector_Cylindrical3D 1
61 template <
class CoordSystem >
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)
282void 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);
288void 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);
295void 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);
302void 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);
double atan2(double, double)
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.
Cylindrical3D & operator=(const Cylindrical3D &v)
assignment operator
void SetPhi(T phi)
set the phi coordinate value keeping rho and z constant
Cylindrical3D()
Default constructor with rho=z=phi=0.
bool operator!=(const Cylindrical3D &rhs) const
void SetXYZ(Scalar x, Scalar y, Scalar z)
set all values using cartesian coordinates
Cylindrical3D(const Cylindrical3D &v)
copy constructor
Cylindrical3D(Scalar rho, Scalar zz, Scalar phi)
Construct from rho eta and phi values.
void Negate()
negate the vector
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
void SetCoordinates(Scalar rho, Scalar zz, Scalar phi)
Set internal data based on 3 Scalar numbers ( rho, z , phi)
void SetRho(T rho)
set the rho coordinate value keeping z and phi constant
Cylindrical3D(const CoordSystem &v)
Construct from any Vector or coordinate system implementing Rho(), Z() and Phi()
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)
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
Namespace for new ROOT classes and functions.
#define dest(otri, vertexptr)