class ROOT::Math::Cylindrical3D<Double32_t>
Class describing a cylindrical coordinate system based on rho, z and phi.
The base coordinates are rho (transverse component) , z and phi
Phi is restricted to be in the range [-PI,PI)
@ingroup GenVector
Function Members (Methods)
Class Charts
Function documentation
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)
Scalar pi()
{ return M_PI; }
Scalar R() const
{ return std::sqrt( Mag2()); }
Scalar Eta() const
pseudorapidity - use same implementation as in Cartesian3D
void SetRho(double rho)
setters (only for data members)
set the rho coordinate value keeping z and phi constant
void SetZ(double zz)
set the z coordinate value keeping rho and phi constant
void SetPhi(double phi)
set the phi coordinate value keeping rho and z constant
void Scale(double a)
scale by a scalar quantity a --
for cylindrical coords only rho and z change
T x() const
============= Compatibility section ==================
The following make this coordinate system look enough like a CLHEP
vector that an assignment member template can work with either