Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
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 242 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)
TT * Arr ()
const TT * Arr () const
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; t)\n".
TT Eta () const
 Calculate eta of the point, pretending it's a momentum vector.
TClassIsA () const
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.
 operator const TT * () const
 operator TT * ()
TEveVector4Toperator*= (TT s)
TEveVector4Toperator+= (const TEveVector4T &v)
TEveVectorToperator+= (const TEveVectorT &v)
TEveVector4Toperator-= (const TEveVector4T &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).
void OrthoNormBase (TEveVectorT &a, TEveVectorT &b) const
 Set vectors a and b to be normal to this and among themselves, both of length 1.
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.
void Set (TT x, TT y, TT z)
TT SquareDistance (const TEveVectorT &v) const
void Streamer (TBuffer &)
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
TEveVectorTSub (const TEveVectorT &a, const TEveVectorT &b)
TT Theta () const

Static Public Member Functions

static TClassClass ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()

Public Attributes

TT fT
TT fX
TT fY
TT fZ

Private Types

typedef TEveVectorT< TT > TP

#include <TEveVector.h>

Inheritance diagram for TEveVector4T< TT >:
TEveVectorT< TT >

Member Typedef Documentation

◆ TP

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

Definition at line 244 of file TEveVector.h.

Constructor & Destructor Documentation

◆ TEveVector4T() [1/7]

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

Definition at line 249 of file TEveVector.h.

◆ TEveVector4T() [2/7]

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

Definition at line 251 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 253 of file TEveVector.h.

◆ TEveVector4T() [4/7]

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

Definition at line 255 of file TEveVector.h.

◆ TEveVector4T() [5/7]

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

Definition at line 256 of file TEveVector.h.

◆ TEveVector4T() [6/7]

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

Definition at line 257 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 258 of file TEveVector.h.

Member Function Documentation

◆ Arr() [1/2]

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

Definition at line 64 of file TEveVector.h.

◆ Arr() [2/2]

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

Definition at line 58 of file TEveVector.h.

◆ Class()

template<typename TT>
TClass * TEveVector4T< TT >::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

template<typename TT>
const char * TEveVector4T< TT >::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

template<typename TT>
constexpr Version_t TEveVector4T< TT >::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 269 of file TEveVector.h.

◆ CosTheta()

template<typename TT>
TT TEveVectorT< TT >::CosTheta ( ) const
inlineinherited

Definition at line 143 of file TEveVector.h.

◆ Cross()

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

Definition at line 175 of file TEveVector.h.

◆ DeclFileName()

template<typename TT>
const char * TEveVector4T< TT >::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 269 of file TEveVector.h.

◆ Distance()

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

Definition at line 150 of file TEveVector.h.

◆ Dot()

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

Definition at line 168 of file TEveVector.h.

◆ Dump()

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

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

Definition at line 108 of file TEveVector.cxx.

◆ Eta()

template<typename TT>
TT TEveVectorT< TT >::Eta ( ) const
inherited

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

Definition at line 42 of file TEveVector.cxx.

◆ IsA()

template<typename TT>
TClass * TEveVector4T< TT >::IsA ( ) const
inline
Returns
TClass describing current object

Definition at line 269 of file TEveVector.h.

◆ IsZero()

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

Definition at line 118 of file TEveVector.h.

◆ Mag()

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

Definition at line 99 of file TEveVector.h.

◆ Mag2()

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

Definition at line 98 of file TEveVector.h.

◆ Mult()

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

Definition at line 196 of file TEveVector.h.

◆ NegateXYZ()

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

Definition at line 90 of file TEveVector.h.

◆ Normalize()

template<typename TT>
TT TEveVectorT< TT >::Normalize ( TT length = 1)
inherited

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

Returns the old magnitude.

Definition at line 54 of file TEveVector.cxx.

◆ operator const TT *()

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

Definition at line 72 of file TEveVector.h.

◆ operator TT *()

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

Definition at line 73 of file TEveVector.h.

◆ operator*=()

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

Definition at line 262 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< TT > & v)
inlineinherited

Definition at line 79 of file TEveVector.h.

◆ operator-=() [1/2]

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

Definition at line 264 of file TEveVector.h.

◆ operator-=() [2/2]

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

Definition at line 80 of file TEveVector.h.

◆ operator[]() [1/2]

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

Definition at line 76 of file TEveVector.h.

◆ operator[]() [2/2]

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

Definition at line 75 of file TEveVector.h.

◆ Orthogonal()

template<typename TT>
TEveVectorT< TT > TEveVectorT< TT >::Orthogonal ( ) const
inherited

Returns an orthogonal vector (not normalized).

Definition at line 68 of file TEveVector.cxx.

◆ OrthoNormBase()

template<typename TT>
void TEveVectorT< TT >::OrthoNormBase ( TEveVectorT< TT > & a,
TEveVectorT< TT > & b ) const
inherited

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

Definition at line 84 of file TEveVector.cxx.

◆ Perp()

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

Definition at line 102 of file TEveVector.h.

◆ Perp2()

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

Definition at line 101 of file TEveVector.h.

◆ Phi()

template<typename TT>
TT TEveVectorT< TT >::Phi ( ) const
inlineinherited

Definition at line 129 of file TEveVector.h.

◆ R()

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

Definition at line 103 of file TEveVector.h.

◆ Set() [1/5]

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

Definition at line 83 of file TEveVector.h.

◆ Set() [2/5]

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

Definition at line 82 of file TEveVector.h.

◆ Set() [3/5]

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

Definition at line 88 of file TEveVector.h.

◆ Set() [4/5]

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

Set from TVector3.

Definition at line 34 of file TEveVector.cxx.

◆ Set() [5/5]

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

Definition at line 84 of file TEveVector.h.

◆ SquareDistance()

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

Definition at line 159 of file TEveVector.h.

◆ Streamer()

template<typename TT>
void TEveVector4T< TT >::Streamer ( TBuffer & )

◆ StreamerNVirtual()

template<typename TT>
void TEveVector4T< TT >::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 269 of file TEveVector.h.

◆ Sub()

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

Definition at line 186 of file TEveVector.h.

◆ Theta()

template<typename TT>
TT TEveVectorT< TT >::Theta ( ) const
inlineinherited

Definition at line 136 of file TEveVector.h.

Member Data Documentation

◆ fT

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

Definition at line 247 of file TEveVector.h.

◆ fX

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

Definition at line 30 of file TEveVector.h.

◆ fY

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

Definition at line 30 of file TEveVector.h.

◆ fZ

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

Definition at line 30 of file TEveVector.h.


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