Logo ROOT  
Reference Guide
TEveVectorT< TT > Class Template Reference

template<typename TT>
class TEveVectorT< TT >

Minimal, templated three-vector.

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

Definition at line 26 of file TEveVector.h.

Public Member Functions

 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 fX
 
TT fY
 
TT fZ
 

#include <TEveVector.h>

Inheritance diagram for TEveVectorT< TT >:
[legend]

Constructor & Destructor Documentation

◆ TEveVectorT() [1/5]

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

Definition at line 31 of file TEveVector.h.

◆ TEveVectorT() [2/5]

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

Definition at line 33 of file TEveVector.h.

◆ TEveVectorT() [3/5]

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

Definition at line 34 of file TEveVector.h.

◆ TEveVectorT() [4/5]

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

Definition at line 35 of file TEveVector.h.

◆ TEveVectorT() [5/5]

template<typename TT >
TEveVectorT< TT >::TEveVectorT ( TT  x,
TT  y,
TT  z 
)
inline

Definition at line 36 of file TEveVector.h.

Member Function Documentation

◆ Arr() [1/2]

template<typename TT >
TT * TEveVectorT< TT >::Arr ( )
inline

Definition at line 63 of file TEveVector.h.

◆ Arr() [2/2]

template<typename TT >
const TT * TEveVectorT< TT >::Arr ( ) const
inline

Definition at line 57 of file TEveVector.h.

◆ ClassDefNV()

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

◆ CosTheta()

template<typename TT >
TT TEveVectorT< TT >::CosTheta
inline

Definition at line 142 of file TEveVector.h.

◆ Cross()

template<typename TT >
TEveVectorT< TT > TEveVectorT< TT >::Cross ( const TEveVectorT< TT > &  a) const
inline

Definition at line 174 of file TEveVector.h.

◆ Distance()

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

Definition at line 149 of file TEveVector.h.

◆ Dot()

template<typename TT >
TT TEveVectorT< TT >::Dot ( const TEveVectorT< TT > &  a) const
inline

Definition at line 167 of file TEveVector.h.

◆ Dump()

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

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

Definition at line 28 of file TEveVector.cxx.

◆ Eta()

template<typename TT >
TT TEveVectorT< TT >::Eta

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

Definition at line 44 of file TEveVector.cxx.

◆ IsZero()

template<typename TT >
Bool_t TEveVectorT< TT >::IsZero ( ) const
inline

Definition at line 117 of file TEveVector.h.

◆ Mag()

template<typename TT >
TT TEveVectorT< TT >::Mag ( ) const
inline

Definition at line 98 of file TEveVector.h.

◆ Mag2()

template<typename TT >
TT TEveVectorT< TT >::Mag2 ( ) const
inline

Definition at line 97 of file TEveVector.h.

◆ Mult()

template<typename TT >
TEveVectorT< TT > & TEveVectorT< TT >::Mult ( const TEveVectorT< TT > &  a,
TT  af 
)
inline

Definition at line 195 of file TEveVector.h.

◆ NegateXYZ()

template<typename TT >
void TEveVectorT< TT >::NegateXYZ ( )
inline

Definition at line 89 of file TEveVector.h.

◆ Normalize()

template<typename TT >
TT TEveVectorT< 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 TEveVector.cxx.

◆ operator const TT *()

template<typename TT >
TEveVectorT< TT >::operator const TT * ( ) const
inline

Definition at line 71 of file TEveVector.h.

◆ operator TT *()

template<typename TT >
TEveVectorT< TT >::operator TT * ( )
inline

Definition at line 72 of file TEveVector.h.

◆ operator*=()

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

Definition at line 77 of file TEveVector.h.

◆ operator+=()

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

Definition at line 78 of file TEveVector.h.

◆ operator-=()

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

Definition at line 79 of file TEveVector.h.

◆ operator[]() [1/2]

template<typename TT >
TT & TEveVectorT< TT >::operator[] ( Int_t  idx)
inline

Definition at line 75 of file TEveVector.h.

◆ operator[]() [2/2]

template<typename TT >
TT TEveVectorT< TT >::operator[] ( Int_t  idx) const
inline

Definition at line 74 of file TEveVector.h.

◆ Orthogonal()

template<typename TT >
TEveVectorT< TT > TEveVectorT< TT >::Orthogonal

Returns an orthogonal vector (not normalized).

Definition at line 70 of file TEveVector.cxx.

◆ OrthoNormBase()

template<typename TT >
void TEveVectorT< TT >::OrthoNormBase ( TEveVectorT< TT > &  a,
TEveVectorT< 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 TEveVector.cxx.

◆ Perp()

template<typename TT >
TT TEveVectorT< TT >::Perp ( ) const
inline

Definition at line 101 of file TEveVector.h.

◆ Perp2()

template<typename TT >
TT TEveVectorT< TT >::Perp2 ( ) const
inline

Definition at line 100 of file TEveVector.h.

◆ Phi()

template<typename TT >
TT TEveVectorT< TT >::Phi
inline

Definition at line 128 of file TEveVector.h.

◆ R()

template<typename TT >
TT TEveVectorT< TT >::R ( ) const
inline

Definition at line 102 of file TEveVector.h.

◆ Set() [1/5]

template<typename TT >
void TEveVectorT< TT >::Set ( const Double_t v)
inline

Definition at line 82 of file TEveVector.h.

◆ Set() [2/5]

template<typename TT >
void TEveVectorT< TT >::Set ( const Float_t v)
inline

Definition at line 81 of file TEveVector.h.

◆ Set() [3/5]

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

Definition at line 87 of file TEveVector.h.

◆ Set() [4/5]

template<typename TT >
void TEveVectorT< TT >::Set ( const TVector3 v)

Set from TVector3.

Definition at line 36 of file TEveVector.cxx.

◆ Set() [5/5]

template<typename TT >
void TEveVectorT< TT >::Set ( TT  x,
TT  y,
TT  z 
)
inline

Definition at line 83 of file TEveVector.h.

◆ SquareDistance()

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

Definition at line 158 of file TEveVector.h.

◆ Sub()

template<typename TT >
TEveVectorT< TT > & TEveVectorT< TT >::Sub ( const TEveVectorT< TT > &  a,
const TEveVectorT< TT > &  b 
)
inline

Definition at line 185 of file TEveVector.h.

◆ Theta()

template<typename TT >
TT TEveVectorT< TT >::Theta
inline

Definition at line 135 of file TEveVector.h.

Member Data Documentation

◆ fX

template<typename TT >
TT TEveVectorT< TT >::fX

Definition at line 29 of file TEveVector.h.

◆ fY

template<typename TT >
TT TEveVectorT< TT >::fY

Definition at line 29 of file TEveVector.h.

◆ fZ

template<typename TT >
TT TEveVectorT< TT >::fZ

Definition at line 29 of file TEveVector.h.


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