ROOT  6.06/09
Reference Guide
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ROOT::Math::DisplacementVector3D< CoordSystem, Tag > Class Template Reference

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
class ROOT::Math::DisplacementVector3D< CoordSystem, Tag >

Class describing a generic displacement vector in 3 dimensions.

Class template describing a 3D displacement vector.

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.

Definition at line 77 of file DisplacementVector3D.h.

Public Types

typedef CoordSystem::Scalar Scalar
 
typedef CoordSystem CoordinateType
 
typedef Tag CoordinateSystemTag
 

Public Member Functions

 DisplacementVector3D ()
 Default constructor. More...
 
 DisplacementVector3D (Scalar a, Scalar b, Scalar c)
 Construct from three values of type Scalar. More...
 
template<class OtherCoords >
 DisplacementVector3D (const DisplacementVector3D< OtherCoords, Tag > &v)
 Construct from a displacement vector expressed in different coordinates, or using a different Scalar type, but with same coordinate system tag. More...
 
template<class OtherCoords >
 DisplacementVector3D (const PositionVector3D< OtherCoords, Tag > &p)
 Construct from a position vector expressed in different coordinates but with the same coordinate system tag. More...
 
template<class ForeignVector >
 DisplacementVector3D (const ForeignVector &v)
 Construct from a foreign 3D vector type, for example, Hep3Vector Precondition: v must implement methods x(), y() and z() More...
 
template<class OtherCoords >
DisplacementVector3Doperator= (const DisplacementVector3D< OtherCoords, Tag > &v)
 Assignment operator from a displacement vector of arbitrary type. More...
 
template<class OtherCoords >
DisplacementVector3Doperator= (const PositionVector3D< OtherCoords, Tag > &rhs)
 Assignment operator from a position vector (not necessarily efficient unless one or the other is Cartesian) More...
 
template<class ForeignVector >
DisplacementVector3Doperator= (const ForeignVector &v)
 Assignment from a foreign 3D vector type, for example, Hep3Vector Precondition: v must implement methods x(), y() and z() More...
 
CoordSystem Coordinates () const
 Retrieve a copy of the coordinates object. More...
 
DisplacementVector3D< CoordSystem, Tag > & SetCoordinates (const Scalar src[])
 Set internal data based on a C-style array of 3 Scalar numbers. More...
 
DisplacementVector3D< CoordSystem, Tag > & SetCoordinates (Scalar a, Scalar b, Scalar c)
 Set internal data based on 3 Scalar numbers. More...
 
template<class IT >
DisplacementVector3D< CoordSystem, Tag > & SetCoordinates (IT begin, IT end)
 Set internal data based on 3 Scalars at *begin to *end. More...
 
void GetCoordinates (Scalar &a, Scalar &b, Scalar &c) const
 get internal data into 3 Scalar numbers More...
 
void GetCoordinates (Scalar dest[]) const
 get internal data into a C-style array of 3 Scalar numbers More...
 
template<class IT >
void GetCoordinates (IT begin, IT end) const
 get internal data into 3 Scalars at *begin to *end (3 past begin) More...
 
template<class IT >
void GetCoordinates (IT begin) const
 get internal data into 3 Scalars starting at *begin More...
 
DisplacementVector3D< CoordSystem, Tag > & SetXYZ (Scalar a, Scalar b, Scalar c)
 set the values of the vector from the cartesian components (x,y,z) (if the vector is held in polar or cylindrical eta coordinates, then (x, y, z) are converted to that form) More...
 
bool operator== (const DisplacementVector3D &rhs) const
 Exact equality. More...
 
bool operator!= (const DisplacementVector3D &rhs) const
 
Scalar X () const
 Cartesian X, converting if necessary from internal coordinate system. More...
 
Scalar Y () const
 Cartesian Y, converting if necessary from internal coordinate system. More...
 
Scalar Z () const
 Cartesian Z, converting if necessary from internal coordinate system. More...
 
Scalar R () const
 Polar R, converting if necessary from internal coordinate system. More...
 
Scalar Theta () const
 Polar theta, converting if necessary from internal coordinate system. More...
 
Scalar Phi () const
 Polar phi, converting if necessary from internal coordinate system. More...
 
Scalar Eta () const
 Polar eta, converting if necessary from internal coordinate system. More...
 
Scalar Rho () const
 Cylindrical transverse component rho. More...
 
Scalar Mag2 () const
 Magnitute squared ( r^2 in spherical coordinate) More...
 
Scalar Perp2 () const
 Transverse component squared (rho^2 in cylindrical coordinates. More...
 
DisplacementVector3D Unit () const
 return unit vector parallel to this More...
 
DisplacementVector3D< CoordSystem, Tag > & SetX (Scalar xx)
 Change X - Cartesian3D coordinates only. More...
 
DisplacementVector3D< CoordSystem, Tag > & SetY (Scalar yy)
 Change Y - Cartesian3D coordinates only. More...
 
DisplacementVector3D< CoordSystem, Tag > & SetZ (Scalar zz)
 Change Z - Cartesian3D coordinates only. More...
 
DisplacementVector3D< CoordSystem, Tag > & SetR (Scalar rr)
 Change R - Polar3D coordinates only. More...
 
DisplacementVector3D< CoordSystem, Tag > & SetTheta (Scalar ang)
 Change Theta - Polar3D coordinates only. More...
 
DisplacementVector3D< CoordSystem, Tag > & SetPhi (Scalar ang)
 Change Phi - Polar3D or CylindricalEta3D coordinates. More...
 
DisplacementVector3D< CoordSystem, Tag > & SetRho (Scalar rr)
 Change Rho - CylindricalEta3D coordinates only. More...
 
DisplacementVector3D< CoordSystem, Tag > & SetEta (Scalar etaval)
 Change Eta - CylindricalEta3D coordinates only. More...
 
template<class OtherCoords >
Scalar Dot (const DisplacementVector3D< OtherCoords, Tag > &v) const
 Return the scalar (dot) product of two displacement vectors. More...
 
template<class OtherVector >
Scalar Dot (const OtherVector &v) const
 Return the scalar (dot) product of two vectors. More...
 
template<class OtherCoords >
DisplacementVector3D Cross (const DisplacementVector3D< OtherCoords, Tag > &v) const
 Return vector (cross) product of two displacement vectors, as a vector in the coordinate system of this class. More...
 
template<class OtherVector >
DisplacementVector3D Cross (const OtherVector &v) const
 Return vector (cross) product of two vectors, as a vector in the coordinate system of this class. More...
 
template<class OtherCoords >
DisplacementVector3Doperator+= (const DisplacementVector3D< OtherCoords, Tag > &v)
 Self Addition with a displacement vector. More...
 
template<class OtherCoords >
DisplacementVector3Doperator-= (const DisplacementVector3D< OtherCoords, Tag > &v)
 Self Difference with a displacement vector. More...
 
DisplacementVector3Doperator*= (Scalar a)
 multiply this vector by a scalar quantity More...
 
DisplacementVector3Doperator/= (Scalar a)
 divide this vector by a scalar quantity More...
 
DisplacementVector3D operator* (Scalar a) const
 Multiply a vector by a real number. More...
 
DisplacementVector3D operator- () const
 Negative of the vector. More...
 
DisplacementVector3D operator+ () const
 Positive of the vector, return itself. More...
 
DisplacementVector3D operator/ (Scalar a) const
 Division of a vector with a real number. More...
 
Scalar x () const
 
Scalar y () const
 
Scalar z () const
 
Scalar r () const
 
Scalar theta () const
 
Scalar phi () const
 
Scalar eta () const
 
Scalar rho () const
 
Scalar mag2 () const
 
Scalar perp2 () const
 
DisplacementVector3D unit () const
 

Private Member Functions

template<class OtherCoords , class OtherTag >
 DisplacementVector3D (const DisplacementVector3D< OtherCoords, OtherTag > &)
 
template<class OtherCoords , class OtherTag >
 DisplacementVector3D (const PositionVector3D< OtherCoords, OtherTag > &)
 
template<class OtherCoords , class OtherTag >
DisplacementVector3Doperator= (const DisplacementVector3D< OtherCoords, OtherTag > &)
 
template<class OtherCoords , class OtherTag >
DisplacementVector3Doperator= (const PositionVector3D< OtherCoords, OtherTag > &)
 
template<class OtherCoords , class OtherTag >
DisplacementVector3Doperator+= (const DisplacementVector3D< OtherCoords, OtherTag > &)
 
template<class OtherCoords , class OtherTag >
DisplacementVector3Doperator-= (const DisplacementVector3D< OtherCoords, OtherTag > &)
 
template<class OtherCoords , class OtherTag >
Scalar Dot (const DisplacementVector3D< OtherCoords, OtherTag > &) const
 
template<class OtherCoords , class OtherTag >
DisplacementVector3D Cross (const DisplacementVector3D< OtherCoords, OtherTag > &) const
 

Private Attributes

CoordSystem fCoordinates
 

#include <Math/GenVector/DisplacementVector3D.h>

+ Collaboration diagram for ROOT::Math::DisplacementVector3D< CoordSystem, Tag >:

Member Typedef Documentation

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
typedef Tag ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::CoordinateSystemTag

Definition at line 83 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
typedef CoordSystem ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::CoordinateType

Definition at line 82 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
typedef CoordSystem::Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Scalar

Definition at line 81 of file DisplacementVector3D.h.

Constructor & Destructor Documentation

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::DisplacementVector3D ( )
inline

Default constructor.

Construct an empty object with zero values

Definition at line 90 of file DisplacementVector3D.h.

Referenced by ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::Unit().

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::DisplacementVector3D ( Scalar  a,
Scalar  b,
Scalar  c 
)
inline

Construct from three values of type Scalar.

In the case of a XYZVector the values are x,y,z In the case of a polar vector they are r,theta, phi

Definition at line 98 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherCoords >
ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::DisplacementVector3D ( const DisplacementVector3D< OtherCoords, Tag > &  v)
inlineexplicit

Construct from a displacement vector expressed in different coordinates, or using a different Scalar type, but with same coordinate system tag.

Definition at line 106 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherCoords >
ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::DisplacementVector3D ( const PositionVector3D< OtherCoords, Tag > &  p)
inlineexplicit

Construct from a position vector expressed in different coordinates but with the same coordinate system tag.

Definition at line 115 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class ForeignVector >
ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::DisplacementVector3D ( const ForeignVector &  v)
inlineexplicit

Construct from a foreign 3D vector type, for example, Hep3Vector Precondition: v must implement methods x(), y() and z()

Definition at line 124 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherCoords , class OtherTag >
ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::DisplacementVector3D ( const DisplacementVector3D< OtherCoords, OtherTag > &  )
inlineexplicitprivate

Definition at line 551 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherCoords , class OtherTag >
ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::DisplacementVector3D ( const PositionVector3D< OtherCoords, OtherTag > &  )
inlineexplicitprivate

Definition at line 554 of file DisplacementVector3D.h.

Member Function Documentation

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
CoordSystem ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Coordinates ( ) const
inline

Retrieve a copy of the coordinates object.

Definition at line 201 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherCoords >
DisplacementVector3D ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Cross ( const DisplacementVector3D< OtherCoords, Tag > &  v) const
inline

Return vector (cross) product of two displacement vectors, as a vector in the coordinate system of this class.

It is possible to perform the product for any type of vector coordinates, but they must have the same coordinate system tag

Definition at line 425 of file DisplacementVector3D.h.

Referenced by testVector3D(), and ROOT::Math::Transform3D::Transform3D().

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherVector >
DisplacementVector3D ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Cross ( const OtherVector &  v) const
inline

Return vector (cross) product of two vectors, as a vector in the coordinate system of this class.

It is possible to perform the product for any classes implementing X(), Y() and Z() member functions

Definition at line 439 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherCoords , class OtherTag >
DisplacementVector3D ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Cross ( const DisplacementVector3D< OtherCoords, OtherTag > &  ) const
private
template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherCoords >
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Dot ( const DisplacementVector3D< OtherCoords, Tag > &  v) const
inline

Return the scalar (dot) product of two displacement vectors.

It is possible to perform the product for any type of vector coordinates, but they must have the same coordinate system tag

Definition at line 405 of file DisplacementVector3D.h.

Referenced by ROOT::Math::Plane3D::BuildFrom3Points(), ROOT::Math::Plane3D::BuildFromVecAndPoint(), testVector3D(), testVectorUtil(), and ROOT::Math::Transform3D::Transform3D().

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherVector >
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Dot ( const OtherVector &  v) const
inline

Return the scalar (dot) product of two vectors.

It is possible to perform the product for any classes implementing x(), y() and z() member functions

Definition at line 414 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherCoords , class OtherTag >
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Dot ( const DisplacementVector3D< OtherCoords, OtherTag > &  ) const
private
template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Eta ( ) const
inline

Polar eta, converting if necessary from internal coordinate system.

Definition at line 326 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::eta ( ) const
inline

Definition at line 528 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
void ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::GetCoordinates ( Scalar a,
Scalar b,
Scalar c 
) const
inline
template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
void ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::GetCoordinates ( Scalar  dest[]) const
inline

get internal data into a C-style array of 3 Scalar numbers

Definition at line 241 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class IT >
void ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::GetCoordinates ( IT  begin,
IT  end 
) const
inline

get internal data into 3 Scalars at *begin to *end (3 past begin)

Definition at line 249 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class IT >
void ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::GetCoordinates ( IT  begin) const
inline

get internal data into 3 Scalars starting at *begin

Definition at line 261 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Mag2 ( ) const
inline
template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::mag2 ( ) const
inline

Definition at line 530 of file DisplacementVector3D.h.

Referenced by ROOT::Math::Boost::Rectify().

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
bool ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::operator!= ( const DisplacementVector3D< CoordSystem, Tag > &  rhs) const
inline

Definition at line 287 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::operator* ( Scalar  a) const
inline

Multiply a vector by a real number.

Definition at line 492 of file DisplacementVector3D.h.

Referenced by ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::operator-().

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::operator*= ( Scalar  a)
inline

multiply this vector by a scalar quantity

Definition at line 473 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::operator+ ( ) const
inline

Positive of the vector, return itself.

Definition at line 508 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherCoords >
DisplacementVector3D& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::operator+= ( const DisplacementVector3D< OtherCoords, Tag > &  v)
inline

Self Addition with a displacement vector.

Definition at line 454 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherCoords , class OtherTag >
DisplacementVector3D& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::operator+= ( const DisplacementVector3D< OtherCoords, OtherTag > &  )
private
template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::operator- ( ) const
inline

Negative of the vector.

Definition at line 501 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherCoords >
DisplacementVector3D& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::operator-= ( const DisplacementVector3D< OtherCoords, Tag > &  v)
inline

Self Difference with a displacement vector.

Definition at line 464 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherCoords , class OtherTag >
DisplacementVector3D& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::operator-= ( const DisplacementVector3D< OtherCoords, OtherTag > &  )
private
template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::operator/ ( Scalar  a) const
inline

Division of a vector with a real number.

Definition at line 513 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::operator/= ( Scalar  a)
inline

divide this vector by a scalar quantity

Definition at line 481 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherCoords >
DisplacementVector3D& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::operator= ( const DisplacementVector3D< OtherCoords, Tag > &  v)
inline

Assignment operator from a displacement vector of arbitrary type.

Definition at line 152 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherCoords >
DisplacementVector3D& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::operator= ( const PositionVector3D< OtherCoords, Tag > &  rhs)
inline

Assignment operator from a position vector (not necessarily efficient unless one or the other is Cartesian)

Definition at line 163 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class ForeignVector >
DisplacementVector3D& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::operator= ( const ForeignVector &  v)
inline

Assignment from a foreign 3D vector type, for example, Hep3Vector Precondition: v must implement methods x(), y() and z()

Definition at line 174 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherCoords , class OtherTag >
DisplacementVector3D& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::operator= ( const DisplacementVector3D< OtherCoords, OtherTag > &  )
private
template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class OtherCoords , class OtherTag >
DisplacementVector3D& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::operator= ( const PositionVector3D< OtherCoords, OtherTag > &  )
private
template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
bool ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::operator== ( const DisplacementVector3D< CoordSystem, Tag > &  rhs) const
inline
template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Perp2 ( ) const
inline

Transverse component squared (rho^2 in cylindrical coordinates.

Definition at line 343 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::perp2 ( ) const
inline

Definition at line 531 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Phi ( ) const
inline

Polar phi, converting if necessary from internal coordinate system.

Definition at line 321 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::phi ( ) const
inline

Definition at line 527 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::R ( ) const
inline
template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::r ( ) const
inline

Definition at line 525 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Rho ( ) const
inline

Cylindrical transverse component rho.

Definition at line 331 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::rho ( ) const
inline

Definition at line 529 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D<CoordSystem, Tag>& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::SetCoordinates ( const Scalar  src[])
inline
template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D<CoordSystem, Tag>& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::SetCoordinates ( Scalar  a,
Scalar  b,
Scalar  c 
)
inline

Set internal data based on 3 Scalar numbers.

Definition at line 214 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
template<class IT >
DisplacementVector3D<CoordSystem, Tag>& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::SetCoordinates ( IT  begin,
IT  end 
)
inline

Set internal data based on 3 Scalars at *begin to *end.

Definition at line 222 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D<CoordSystem, Tag>& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::SetEta ( Scalar  etaval)
inline

Change Eta - CylindricalEta3D coordinates only.

Definition at line 393 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D<CoordSystem, Tag>& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::SetPhi ( Scalar  ang)
inline

Change Phi - Polar3D or CylindricalEta3D coordinates.

Definition at line 383 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D<CoordSystem, Tag>& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::SetR ( Scalar  rr)
inline

Change R - Polar3D coordinates only.

Definition at line 373 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D<CoordSystem, Tag>& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::SetRho ( Scalar  rr)
inline

Change Rho - CylindricalEta3D coordinates only.

Definition at line 388 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D<CoordSystem, Tag>& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::SetTheta ( Scalar  ang)
inline

Change Theta - Polar3D coordinates only.

Definition at line 378 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D<CoordSystem, Tag>& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::SetX ( Scalar  xx)
inline

Change X - Cartesian3D coordinates only.

Definition at line 358 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D<CoordSystem, Tag>& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::SetXYZ ( Scalar  a,
Scalar  b,
Scalar  c 
)
inline
template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D<CoordSystem, Tag>& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::SetY ( Scalar  yy)
inline

Change Y - Cartesian3D coordinates only.

Definition at line 363 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D<CoordSystem, Tag>& ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::SetZ ( Scalar  zz)
inline

Change Z - Cartesian3D coordinates only.

Definition at line 368 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Theta ( ) const
inline

Polar theta, converting if necessary from internal coordinate system.

Definition at line 316 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::theta ( ) const
inline

Definition at line 526 of file DisplacementVector3D.h.

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Unit ( ) const
inline

return unit vector parallel to this

Definition at line 348 of file DisplacementVector3D.h.

Referenced by ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::unit().

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
DisplacementVector3D ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::unit ( ) const
inline

Definition at line 532 of file DisplacementVector3D.h.

Referenced by ROOT::Math::AxisAngle::SetComponents().

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::X ( ) const
inline
template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::x ( ) const
inline
template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Y ( ) const
inline
template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::y ( ) const
inline
template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::Z ( ) const
inline
template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
Scalar ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::z ( ) const
inline

Member Data Documentation

template<class CoordSystem, class Tag = DefaultCoordinateSystemTag>
CoordSystem ROOT::Math::DisplacementVector3D< CoordSystem, Tag >::fCoordinates
private

Definition at line 537 of file DisplacementVector3D.h.

Referenced by ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::Coordinates(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::Eta(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::eta(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::GetCoordinates(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::Mag2(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::mag2(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::operator*=(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::operator/=(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::operator=(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::operator==(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::Perp2(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::perp2(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::Phi(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::phi(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::R(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::r(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::Rho(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::rho(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::SetCoordinates(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::SetEta(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::SetPhi(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::SetR(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::SetRho(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::SetTheta(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::SetX(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::SetXYZ(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::SetY(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::SetZ(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::Theta(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::theta(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::X(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::x(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::Y(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::y(), ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::Z(), and ROOT::Math::DisplacementVector3D< Cartesian3D< Scalar > >::z().


The documentation for this class was generated from the following file: