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

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

REveVector4T A four-vector template without TObject inheritance and virtual functions.

Minimal, templated four-vector.

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

Definition at line 238 of file REveVector.hxx.

Public Member Functions

 REveVector4T ()
 
 REveVector4T (const Double_t *v)
 
 REveVector4T (const Float_t *v)
 
template<typename OO >
 REveVector4T (const REveVector4T< OO > &v)
 
template<typename OO >
 REveVector4T (const REveVectorT< OO > &v)
 
template<typename OO >
 REveVector4T (const REveVectorT< OO > &v, Float_t t)
 
 REveVector4T (TT x, TT y, TT z, TT t=0)
 
void Dump () const
 Dump to stdout as "(x, y, z; t)\n". More...
 
REveVector4Toperator*= (TT s)
 
REveVector4Toperator+= (const REveVector4T &v)
 
REveVectorToperator+= (const REveVectorT &v)
 
REveVector4Toperator-= (const REveVector4T &v)
 
REveVectorToperator-= (const REveVectorT &v)
 
- Public Member Functions inherited from ROOT::Experimental::REveVectorT< TT >
 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 fT
 
- Public Attributes inherited from ROOT::Experimental::REveVectorT< TT >
TT fX {0}
 
TT fY {0}
 
TT fZ {0}
 

Private Types

typedef REveVectorT< TT > TP
 

#include <ROOT/REveVector.hxx>

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

Member Typedef Documentation

◆ TP

template<typename TT >
typedef REveVectorT<TT> ROOT::Experimental::REveVector4T< TT >::TP
private

Definition at line 240 of file REveVector.hxx.

Constructor & Destructor Documentation

◆ REveVector4T() [1/7]

template<typename TT >
ROOT::Experimental::REveVector4T< TT >::REveVector4T ( )
inline

Definition at line 245 of file REveVector.hxx.

◆ REveVector4T() [2/7]

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

Definition at line 247 of file REveVector.hxx.

◆ REveVector4T() [3/7]

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

Definition at line 249 of file REveVector.hxx.

◆ REveVector4T() [4/7]

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

Definition at line 251 of file REveVector.hxx.

◆ REveVector4T() [5/7]

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

Definition at line 252 of file REveVector.hxx.

◆ REveVector4T() [6/7]

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

Definition at line 253 of file REveVector.hxx.

◆ REveVector4T() [7/7]

template<typename TT >
ROOT::Experimental::REveVector4T< TT >::REveVector4T ( TT  x,
TT  y,
TT  z,
TT  t = 0 
)
inline

Definition at line 254 of file REveVector.hxx.

Member Function Documentation

◆ Dump()

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

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

Definition at line 109 of file REveVector.cxx.

◆ operator*=()

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

Definition at line 258 of file REveVector.hxx.

◆ operator+=() [1/2]

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

Definition at line 259 of file REveVector.hxx.

◆ operator+=() [2/2]

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

Definition at line 77 of file REveVector.hxx.

◆ operator-=() [1/2]

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

Definition at line 260 of file REveVector.hxx.

◆ operator-=() [2/2]

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

Definition at line 78 of file REveVector.hxx.

Member Data Documentation

◆ fT

template<typename TT >
TT ROOT::Experimental::REveVector4T< TT >::fT

Definition at line 243 of file REveVector.hxx.


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