Logo ROOT  
Reference Guide
ROOT::Experimental::REveVectorT< TT > Class Template Reference

template<typename TT>
class ROOT::Experimental::REveVectorT< TT >

REveVectorT A three-vector template without TObject inheritance and virtual functions.

Minimal, templated three-vector.

No TObject inheritance and virtual functions. Also used in VSD.

Definition at line 29 of file REveVector.hxx.

Public Member Functions

 REveVectorT ()=default
 
 REveVectorT (const Double_t *v)
 
 REveVectorT (const Float_t *v)
 
template<typename OO >
 REveVectorT (const REveVectorT< OO > &v)
 
 REveVectorT (TT x, TT y, TT z)
 
TT * Arr ()
 
const TT * Arr () const
 
TT CosTheta () const
 
REveVectorT Cross (const REveVectorT &a) const
 
TT Distance (const REveVectorT &v) const
 
TT Dot (const REveVectorT &a) const
 
void Dump () const
 Dump to stdout as "(x, y, z)\n". More...
 
TT Eta () const
 Calculate eta of the point, pretending it's a momentum vector. More...
 
Bool_t IsZero () const
 
TT Mag () const
 
TT Mag2 () const
 
REveVectorTMult (const REveVectorT &a, TT af)
 
void NegateXYZ ()
 
TT Normalize (TT length=1)
 Normalize the vector to length if current length is non-zero. More...
 
 operator const TT * () const
 
 operator TT * ()
 
REveVectorToperator*= (TT s)
 
REveVectorToperator+= (const REveVectorT &v)
 
REveVectorToperator-= (const REveVectorT &v)
 
TT & operator[] (Int_t idx)
 
TT operator[] (Int_t idx) const
 
REveVectorT Orthogonal () const
 Returns an orthogonal vector (not normalized). More...
 
void OrthoNormBase (REveVectorT &a, REveVectorT &b) const
 Set vectors a and b to be normal to this and among themselves, both of length 1. More...
 
TT Perp () const
 
TT Perp2 () const
 
TT Phi () const
 
TT R () const
 
void Set (const Double_t *v)
 
void Set (const Float_t *v)
 
template<typename OO >
void Set (const REveVectorT< OO > &v)
 
void Set (const TVector3 &v)
 Set from TVector3. More...
 
void Set (TT x, TT y, TT z)
 
TT SquareDistance (const REveVectorT &v) const
 
REveVectorTSub (const REveVectorT &a, const REveVectorT &b)
 
TT Theta () const
 

Public Attributes

TT fX {0}
 
TT fY {0}
 
TT fZ {0}
 

#include <ROOT/REveVector.hxx>

Inheritance diagram for ROOT::Experimental::REveVectorT< TT >:
[legend]

Constructor & Destructor Documentation

◆ REveVectorT() [1/5]

template<typename TT >
ROOT::Experimental::REveVectorT< TT >::REveVectorT ( )
default

◆ REveVectorT() [2/5]

template<typename TT >
template<typename OO >
ROOT::Experimental::REveVectorT< TT >::REveVectorT ( const REveVectorT< OO > &  v)
inline

Definition at line 35 of file REveVector.hxx.

◆ REveVectorT() [3/5]

template<typename TT >
ROOT::Experimental::REveVectorT< TT >::REveVectorT ( const Float_t v)
inline

Definition at line 36 of file REveVector.hxx.

◆ REveVectorT() [4/5]

template<typename TT >
ROOT::Experimental::REveVectorT< TT >::REveVectorT ( const Double_t v)
inline

Definition at line 37 of file REveVector.hxx.

◆ REveVectorT() [5/5]

template<typename TT >
ROOT::Experimental::REveVectorT< TT >::REveVectorT ( TT  x,
TT  y,
TT  z 
)
inline

Definition at line 38 of file REveVector.hxx.

Member Function Documentation

◆ Arr() [1/2]

template<typename TT >
TT* ROOT::Experimental::REveVectorT< TT >::Arr ( )
inline

Definition at line 62 of file REveVector.hxx.

◆ Arr() [2/2]

template<typename TT >
const TT* ROOT::Experimental::REveVectorT< TT >::Arr ( ) const
inline

Definition at line 56 of file REveVector.hxx.

◆ CosTheta()

template<typename TT >
TT ROOT::Experimental::REveVectorT< TT >::CosTheta
inline

Definition at line 139 of file REveVector.hxx.

◆ Cross()

template<typename TT >
REveVectorT< TT > ROOT::Experimental::REveVectorT< TT >::Cross ( const REveVectorT< TT > &  a) const
inline

Definition at line 171 of file REveVector.hxx.

◆ Distance()

template<typename TT >
TT ROOT::Experimental::REveVectorT< TT >::Distance ( const REveVectorT< TT > &  v) const
inline

Definition at line 146 of file REveVector.hxx.

◆ Dot()

template<typename TT >
TT ROOT::Experimental::REveVectorT< TT >::Dot ( const REveVectorT< TT > &  a) const
inline

Definition at line 164 of file REveVector.hxx.

◆ Dump()

template<typename TT >
void ROOT::Experimental::REveVectorT< TT >::Dump

Dump to stdout as "(x, y, z)\n".

Definition at line 28 of file REveVector.cxx.

◆ Eta()

template<typename TT >
TT ROOT::Experimental::REveVectorT< TT >::Eta

Calculate eta of the point, pretending it's a momentum vector.

Definition at line 44 of file REveVector.cxx.

◆ IsZero()

template<typename TT >
Bool_t ROOT::Experimental::REveVectorT< TT >::IsZero ( ) const
inline

Definition at line 116 of file REveVector.hxx.

◆ Mag()

template<typename TT >
TT ROOT::Experimental::REveVectorT< TT >::Mag ( ) const
inline

Definition at line 97 of file REveVector.hxx.

◆ Mag2()

template<typename TT >
TT ROOT::Experimental::REveVectorT< TT >::Mag2 ( ) const
inline

Definition at line 96 of file REveVector.hxx.

◆ Mult()

template<typename TT >
REveVectorT< TT > & ROOT::Experimental::REveVectorT< TT >::Mult ( const REveVectorT< TT > &  a,
TT  af 
)
inline

Definition at line 192 of file REveVector.hxx.

◆ NegateXYZ()

template<typename TT >
void ROOT::Experimental::REveVectorT< TT >::NegateXYZ ( )
inline

Definition at line 88 of file REveVector.hxx.

◆ Normalize()

template<typename TT >
TT ROOT::Experimental::REveVectorT< TT >::Normalize ( TT  length = 1)

Normalize the vector to length if current length is non-zero.

Returns the old magnitude.

Definition at line 56 of file REveVector.cxx.

◆ operator const TT *()

template<typename TT >
ROOT::Experimental::REveVectorT< TT >::operator const TT * ( ) const
inline

Definition at line 70 of file REveVector.hxx.

◆ operator TT *()

template<typename TT >
ROOT::Experimental::REveVectorT< TT >::operator TT * ( )
inline

Definition at line 71 of file REveVector.hxx.

◆ operator*=()

template<typename TT >
REveVectorT& ROOT::Experimental::REveVectorT< TT >::operator*= ( TT  s)
inline

Definition at line 76 of file REveVector.hxx.

◆ operator+=()

template<typename TT >
REveVectorT& ROOT::Experimental::REveVectorT< TT >::operator+= ( const REveVectorT< TT > &  v)
inline

Definition at line 77 of file REveVector.hxx.

◆ operator-=()

template<typename TT >
REveVectorT& ROOT::Experimental::REveVectorT< TT >::operator-= ( const REveVectorT< TT > &  v)
inline

Definition at line 78 of file REveVector.hxx.

◆ operator[]() [1/2]

template<typename TT >
TT& ROOT::Experimental::REveVectorT< TT >::operator[] ( Int_t  idx)
inline

Definition at line 74 of file REveVector.hxx.

◆ operator[]() [2/2]

template<typename TT >
TT ROOT::Experimental::REveVectorT< TT >::operator[] ( Int_t  idx) const
inline

Definition at line 73 of file REveVector.hxx.

◆ Orthogonal()

template<typename TT >
REveVectorT< TT > ROOT::Experimental::REveVectorT< TT >::Orthogonal

Returns an orthogonal vector (not normalized).

Definition at line 70 of file REveVector.cxx.

◆ OrthoNormBase()

template<typename TT >
void ROOT::Experimental::REveVectorT< TT >::OrthoNormBase ( REveVectorT< TT > &  a,
REveVectorT< TT > &  b 
) const

Set vectors a and b to be normal to this and among themselves, both of length 1.

Definition at line 86 of file REveVector.cxx.

◆ Perp()

template<typename TT >
TT ROOT::Experimental::REveVectorT< TT >::Perp ( ) const
inline

Definition at line 100 of file REveVector.hxx.

◆ Perp2()

template<typename TT >
TT ROOT::Experimental::REveVectorT< TT >::Perp2 ( ) const
inline

Definition at line 99 of file REveVector.hxx.

◆ Phi()

template<typename TT >
TT ROOT::Experimental::REveVectorT< TT >::Phi
inline

Definition at line 125 of file REveVector.hxx.

◆ R()

template<typename TT >
TT ROOT::Experimental::REveVectorT< TT >::R ( ) const
inline

Definition at line 101 of file REveVector.hxx.

◆ Set() [1/5]

template<typename TT >
void ROOT::Experimental::REveVectorT< TT >::Set ( const Double_t v)
inline

Definition at line 81 of file REveVector.hxx.

◆ Set() [2/5]

template<typename TT >
void ROOT::Experimental::REveVectorT< TT >::Set ( const Float_t v)
inline

Definition at line 80 of file REveVector.hxx.

◆ Set() [3/5]

template<typename TT >
template<typename OO >
void ROOT::Experimental::REveVectorT< TT >::Set ( const REveVectorT< OO > &  v)
inline

Definition at line 86 of file REveVector.hxx.

◆ Set() [4/5]

template<typename TT >
void ROOT::Experimental::REveVectorT< TT >::Set ( const TVector3 v)

Set from TVector3.

Definition at line 36 of file REveVector.cxx.

◆ Set() [5/5]

template<typename TT >
void ROOT::Experimental::REveVectorT< TT >::Set ( TT  x,
TT  y,
TT  z 
)
inline

Definition at line 82 of file REveVector.hxx.

◆ SquareDistance()

template<typename TT >
TT ROOT::Experimental::REveVectorT< TT >::SquareDistance ( const REveVectorT< TT > &  v) const
inline

Definition at line 155 of file REveVector.hxx.

◆ Sub()

template<typename TT >
REveVectorT< TT > & ROOT::Experimental::REveVectorT< TT >::Sub ( const REveVectorT< TT > &  a,
const REveVectorT< TT > &  b 
)
inline

Definition at line 182 of file REveVector.hxx.

◆ Theta()

template<typename TT >
TT ROOT::Experimental::REveVectorT< TT >::Theta
inline

Definition at line 132 of file REveVector.hxx.

Member Data Documentation

◆ fX

template<typename TT >
TT ROOT::Experimental::REveVectorT< TT >::fX {0}

Definition at line 31 of file REveVector.hxx.

◆ fY

template<typename TT >
TT ROOT::Experimental::REveVectorT< TT >::fY {0}

Definition at line 31 of file REveVector.hxx.

◆ fZ

template<typename TT >
TT ROOT::Experimental::REveVectorT< TT >::fZ {0}

Definition at line 31 of file REveVector.hxx.


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