Class describing a generic displacement vector in 3 dimensions. This class is templated on the type of Coordinate system. One example is the XYZVector which is a vector based on double precision x,y,z data members by using the ROOT::Math::Cartesian3D<double> Coordinate system. The class is having also an extra template parameter, the coordinate system tag, to be able to identify (tag) vector described in different reference coordinate system, like global or local coordinate systems. @ingroup GenVector
ROOT::Math::Cylindrical3D<double> | fCoordinates | internal coordinate system |
------ Set, Get, and access coordinate data ------ Retrieve a copy of the coordinates object
Set internal data based on a C-style array of 3 Scalar numbers
{ fCoordinates.SetCoordinates(src); return *this; }
Set internal data based on 3 Scalar numbers
{ fCoordinates.SetCoordinates(a, b, c); return *this; }
get internal data into 3 Scalar numbers
{ fCoordinates.GetCoordinates(a, b, c); }
get internal data into a C-style array of 3 Scalar numbers
{ fCoordinates.GetCoordinates(dest); }
------------------- Equality ----------------- Exact equality
------ Individual element access, in various coordinate systems ------ Cartesian X, converting if necessary from internal coordinate system.
{ return fCoordinates.X(); }
Cartesian Y, converting if necessary from internal coordinate system.
{ return fCoordinates.Y(); }
Cartesian Z, converting if necessary from internal coordinate system.
{ return fCoordinates.Z(); }
Polar R, converting if necessary from internal coordinate system.
{ return fCoordinates.R(); }
Polar theta, converting if necessary from internal coordinate system.
{ return fCoordinates.Theta(); }
Polar phi, converting if necessary from internal coordinate system.
{ return fCoordinates.Phi(); }
Polar eta, converting if necessary from internal coordinate system.
{ return fCoordinates.Eta(); }
----- Other fundamental properties ----- Magnitute squared ( r^2 in spherical coordinate)
{ return fCoordinates.Mag2();}
Transverse component squared (rho^2 in cylindrical coordinates.
{ return fCoordinates.Perp2();}
------ Setting of individual elements present in coordinate system ------ Change X - Cartesian3D coordinates only
{ fCoordinates.SetX(xx); return *this;}
Change Y - Cartesian3D coordinates only
{ fCoordinates.SetY(yy); return *this;}
Change Z - Cartesian3D coordinates only
{ fCoordinates.SetZ(zz); return *this;}
Change R - Polar3D coordinates only
{ fCoordinates.SetR(rr); return *this;}
Change Theta - Polar3D coordinates only
{ fCoordinates.SetTheta(ang); return *this;}
Change Phi - Polar3D or CylindricalEta3D coordinates
{ fCoordinates.SetPhi(ang); return *this;}
Change Rho - CylindricalEta3D coordinates only
{ fCoordinates.SetRho(rr); return *this;}
Change Eta - CylindricalEta3D coordinates only
{ fCoordinates.SetEta(etaval); return *this;}
multiply this vector by a scalar quantity
divide this vector by a scalar quantity
Division of a vector with a real number
Methods providing limited backward name compatibility with CLHEP
{ return fCoordinates.X(); }
---------- DisplacementVector3D class template ends here ------------ Addition of DisplacementVector3D vectors. The (coordinate system) type of the returned vector is defined to be identical to that of the first vector, which is passed by value
Difference between two DisplacementVector3D vectors. The (coordinate system) type of the returned vector is defined to be identical to that of the first vector.