Logo ROOT  
Reference Guide
TEveVector4T< TT > Class Template Reference

template<typename TT>
class TEveVector4T< TT >

Minimal, templated four-vector.

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

Definition at line 241 of file TEveVector.h.

Public Member Functions

 TEveVector4T ()
 
 TEveVector4T (const Double_t *v)
 
 TEveVector4T (const Float_t *v)
 
template<typename OO >
 TEveVector4T (const TEveVector4T< OO > &v)
 
template<typename OO >
 TEveVector4T (const TEveVectorT< OO > &v)
 
template<typename OO >
 TEveVector4T (const TEveVectorT< OO > &v, Float_t t)
 
 TEveVector4T (TT x, TT y, TT z, TT t=0)
 
 ClassDefNV (TEveVector4T, 1)
 
void Dump () const
 Dump to stdout as "(x, y, z; t)\n". More...
 
TEveVector4Toperator*= (TT s)
 
TEveVector4Toperator+= (const TEveVector4T &v)
 
TEveVectorToperator+= (const TEveVectorT &v)
 
TEveVector4Toperator-= (const TEveVector4T &v)
 
TEveVectorToperator-= (const TEveVectorT &v)
 
- Public Member Functions inherited from TEveVectorT< TT >
 TEveVectorT ()
 
 TEveVectorT (const Double_t *v)
 
 TEveVectorT (const Float_t *v)
 
template<typename OO >
 TEveVectorT (const TEveVectorT< OO > &v)
 
 TEveVectorT (TT x, TT y, TT z)
 
TT * Arr ()
 
const TT * Arr () const
 
 ClassDefNV (TEveVectorT, 2)
 
TT CosTheta () const
 
TEveVectorT Cross (const TEveVectorT &a) const
 
TT Distance (const TEveVectorT &v) const
 
TT Dot (const TEveVectorT &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
 
TEveVectorTMult (const TEveVectorT &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 * ()
 
TEveVectorToperator*= (TT s)
 
TEveVectorToperator+= (const TEveVectorT &v)
 
TEveVectorToperator-= (const TEveVectorT &v)
 
TT & operator[] (Int_t idx)
 
TT operator[] (Int_t idx) const
 
TEveVectorT Orthogonal () const
 Returns an orthogonal vector (not normalized). More...
 
void OrthoNormBase (TEveVectorT &a, TEveVectorT &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 TEveVectorT< OO > &v)
 
void Set (const TVector3 &v)
 Set from TVector3. More...
 
void Set (TT x, TT y, TT z)
 
TT SquareDistance (const TEveVectorT &v) const
 
TEveVectorTSub (const TEveVectorT &a, const TEveVectorT &b)
 
TT Theta () const
 

Public Attributes

TT fT
 
- Public Attributes inherited from TEveVectorT< TT >
TT fX
 
TT fY
 
TT fZ
 

Private Types

typedef TEveVectorT< TT > TP
 

#include <TEveVector.h>

Inheritance diagram for TEveVector4T< TT >:
[legend]

Member Typedef Documentation

◆ TP

template<typename TT >
typedef TEveVectorT<TT> TEveVector4T< TT >::TP
private

Definition at line 243 of file TEveVector.h.

Constructor & Destructor Documentation

◆ TEveVector4T() [1/7]

template<typename TT >
TEveVector4T< TT >::TEveVector4T ( )
inline

Definition at line 248 of file TEveVector.h.

◆ TEveVector4T() [2/7]

template<typename TT >
template<typename OO >
TEveVector4T< TT >::TEveVector4T ( const TEveVectorT< OO > &  v)
inline

Definition at line 250 of file TEveVector.h.

◆ TEveVector4T() [3/7]

template<typename TT >
template<typename OO >
TEveVector4T< TT >::TEveVector4T ( const TEveVectorT< OO > &  v,
Float_t  t 
)
inline

Definition at line 252 of file TEveVector.h.

◆ TEveVector4T() [4/7]

template<typename TT >
template<typename OO >
TEveVector4T< TT >::TEveVector4T ( const TEveVector4T< OO > &  v)
inline

Definition at line 254 of file TEveVector.h.

◆ TEveVector4T() [5/7]

template<typename TT >
TEveVector4T< TT >::TEveVector4T ( const Float_t v)
inline

Definition at line 255 of file TEveVector.h.

◆ TEveVector4T() [6/7]

template<typename TT >
TEveVector4T< TT >::TEveVector4T ( const Double_t v)
inline

Definition at line 256 of file TEveVector.h.

◆ TEveVector4T() [7/7]

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

Definition at line 257 of file TEveVector.h.

Member Function Documentation

◆ ClassDefNV()

template<typename TT >
TEveVector4T< TT >::ClassDefNV ( TEveVector4T< TT >  ,
 
)

◆ Dump()

template<typename TT >
void TEveVector4T< TT >::Dump

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

Definition at line 112 of file TEveVector.cxx.

◆ operator*=()

template<typename TT >
TEveVector4T & TEveVector4T< TT >::operator*= ( TT  s)
inline

Definition at line 261 of file TEveVector.h.

◆ operator+=() [1/2]

template<typename TT >
TEveVector4T & TEveVector4T< TT >::operator+= ( const TEveVector4T< TT > &  v)
inline

Definition at line 262 of file TEveVector.h.

◆ operator+=() [2/2]

template<typename TT >
TEveVectorT & TEveVectorT< TT >::operator+= ( const TEveVectorT v)
inline

Definition at line 78 of file TEveVector.h.

◆ operator-=() [1/2]

template<typename TT >
TEveVector4T & TEveVector4T< TT >::operator-= ( const TEveVector4T< TT > &  v)
inline

Definition at line 263 of file TEveVector.h.

◆ operator-=() [2/2]

template<typename TT >
TEveVectorT & TEveVectorT< TT >::operator-= ( const TEveVectorT v)
inline

Definition at line 79 of file TEveVector.h.

Member Data Documentation

◆ fT

template<typename TT >
TT TEveVector4T< TT >::fT

Definition at line 246 of file TEveVector.h.


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