ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Private Types | List of all members
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 212 of file TEveVector.h.

Public Member Functions

 TEveVector4T ()
 
template<typename OO >
 TEveVector4T (const TEveVectorT< OO > &v)
 
template<typename OO >
 TEveVector4T (const TEveVectorT< OO > &v, Float_t t)
 
template<typename OO >
 TEveVector4T (const TEveVector4T< OO > &v)
 
 TEveVector4T (const Float_t *v)
 
 TEveVector4T (const Double_t *v)
 
 TEveVector4T (TT x, TT y, TT z, TT t=0)
 
void Dump () const
 Dump to stdout as "(x, y, z; t)\n". More...
 
TEveVector4Toperator*= (TT s)
 
TEveVector4Toperator+= (const TEveVector4T &v)
 
TEveVector4Toperator-= (const TEveVector4T &v)
 
 ClassDefNV (TEveVector4T, 1)
 
- Public Member Functions inherited from TEveVectorT< TT >
 TEveVectorT ()
 
template<typename OO >
 TEveVectorT (const TEveVectorT< OO > &v)
 
 TEveVectorT (const Float_t *v)
 
 TEveVectorT (const Double_t *v)
 
 TEveVectorT (TT x, TT y, TT z)
 
void Dump () const
 Dump to stdout as "(x, y, z)\n". More...
 
 operator const TT * () const
 
 operator TT * ()
 
TT operator[] (Int_t idx) const
 
TT & operator[] (Int_t idx)
 
const TT * Arr () const
 
TT * Arr ()
 
TEveVectorToperator*= (TT s)
 
TEveVectorToperator+= (const TEveVectorT &v)
 
TEveVectorToperator-= (const TEveVectorT &v)
 
void Set (const Float_t *v)
 
void Set (const Double_t *v)
 
void Set (TT x, TT y, TT z)
 
void Set (const TVector3 &v)
 Set from TVector3. More...
 
template<typename OO >
void Set (const TEveVectorT< OO > &v)
 
void NegateXYZ ()
 
TT Normalize (TT length=1)
 Normalize the vector to length if current length is non-zero. More...
 
TT Phi () const
 
TT Theta () const
 
TT CosTheta () const
 
TT Eta () const
 Calculate eta of the point, pretending it's a momentum vector. More...
 
TT Mag2 () const
 
TT Mag () const
 
TT Perp2 () const
 
TT Perp () const
 
TT R () const
 
TT Distance (const TEveVectorT &v) const
 
TT SquareDistance (const TEveVectorT &v) const
 
TT Dot (const TEveVectorT &a) const
 
TEveVectorT Cross (const TEveVectorT &a) const
 
TEveVectorTSub (const TEveVectorT &a, const TEveVectorT &b)
 
TEveVectorTMult (const TEveVectorT &a, TT af)
 
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...
 
Bool_t IsZero () const
 
 ClassDefNV (TEveVectorT, 2)
 

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

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

Definition at line 214 of file TEveVector.h.

Constructor & Destructor Documentation

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

Definition at line 219 of file TEveVector.h.

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

Definition at line 221 of file TEveVector.h.

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

Definition at line 223 of file TEveVector.h.

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

Definition at line 225 of file TEveVector.h.

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

Definition at line 226 of file TEveVector.h.

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

Definition at line 227 of file TEveVector.h.

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

Definition at line 228 of file TEveVector.h.

Member Function Documentation

template<typename TT>
TEveVector4T< TT >::ClassDefNV ( TEveVector4T< TT >  ,
 
)
template<typename TT >
void TEveVector4T< TT >::Dump ( ) const

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

Definition at line 110 of file TEveVector.cxx.

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

Definition at line 232 of file TEveVector.h.

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

Definition at line 233 of file TEveVector.h.

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

Definition at line 234 of file TEveVector.h.

Member Data Documentation

template<typename TT>
TT TEveVector4T< TT >::fT
Collaboration diagram for TEveVector4T< TT >:
[legend]

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