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

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

REveVector2T A two-vector template without TObject inheritance and virtual functions.

Minimal, templated two-vector.

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

Definition at line 304 of file REveVector.hxx.

Public Member Functions

 REveVector2T ()
 
 REveVector2T (const Double_t *v)
 
 REveVector2T (const Float_t *v)
 
template<typename OO >
 REveVector2T (const REveVector2T< OO > &v)
 
 REveVector2T (TT x, TT y)
 
TT * Arr ()
 
const TT * Arr () const
 
TT Cross (const REveVector2T &a) const
 
TT Distance (const REveVector2T &v) const
 
TT Dot (const REveVector2T &a) const
 
void Dump () const
 Dump to stdout as "(x, y)\n". More...
 
TT Mag () const
 
TT Mag2 () const
 
REveVector2TMult (const REveVector2T &a, TT af)
 
void NegateXY ()
 
void Normalize (TT length=1)
 Normalize the vector to length if current length is non-zero. More...
 
 operator const TT * () const
 
 operator TT * ()
 
REveVector2Toperator*= (TT s)
 
REveVector2Toperator+= (const REveVector2T &v)
 
REveVector2Toperator-= (const REveVector2T &v)
 
TT & operator[] (Int_t idx)
 
TT operator[] (Int_t idx) const
 
TT Phi () const
 
void Set (const Double_t *v)
 
void Set (const Float_t *v)
 
template<typename OO >
void Set (const REveVector2T< OO > &v)
 
void Set (TT x, TT y)
 
TT SquareDistance (const REveVector2T &v) const
 
REveVector2TSub (const REveVector2T &p, const REveVector2T &q)
 

Public Attributes

TT fX
 
TT fY
 

#include <ROOT/REveVector.hxx>

Constructor & Destructor Documentation

◆ REveVector2T() [1/5]

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

Definition at line 309 of file REveVector.hxx.

◆ REveVector2T() [2/5]

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

Definition at line 311 of file REveVector.hxx.

◆ REveVector2T() [3/5]

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

Definition at line 312 of file REveVector.hxx.

◆ REveVector2T() [4/5]

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

Definition at line 313 of file REveVector.hxx.

◆ REveVector2T() [5/5]

template<typename TT >
ROOT::Experimental::REveVector2T< TT >::REveVector2T ( TT  x,
TT  y 
)
inline

Definition at line 314 of file REveVector.hxx.

Member Function Documentation

◆ Arr() [1/2]

template<typename TT >
TT * ROOT::Experimental::REveVector2T< TT >::Arr ( )
inline

Definition at line 329 of file REveVector.hxx.

◆ Arr() [2/2]

template<typename TT >
const TT * ROOT::Experimental::REveVector2T< TT >::Arr ( ) const
inline

Definition at line 328 of file REveVector.hxx.

◆ Cross()

template<typename TT >
TT ROOT::Experimental::REveVector2T< TT >::Cross ( const REveVector2T< TT > &  a) const
inline

Definition at line 393 of file REveVector.hxx.

◆ Distance()

template<typename TT >
TT ROOT::Experimental::REveVector2T< TT >::Distance ( const REveVector2T< TT > &  v) const
inline

Definition at line 370 of file REveVector.hxx.

◆ Dot()

template<typename TT >
TT ROOT::Experimental::REveVector2T< TT >::Dot ( const REveVector2T< TT > &  a) const
inline

Definition at line 386 of file REveVector.hxx.

◆ Dump()

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

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

Definition at line 141 of file REveVector.cxx.

◆ Mag()

template<typename TT >
TT ROOT::Experimental::REveVector2T< TT >::Mag ( ) const
inline

Definition at line 344 of file REveVector.hxx.

◆ Mag2()

template<typename TT >
TT ROOT::Experimental::REveVector2T< TT >::Mag2 ( ) const
inline

Definition at line 343 of file REveVector.hxx.

◆ Mult()

template<typename TT >
REveVector2T< TT > & ROOT::Experimental::REveVector2T< TT >::Mult ( const REveVector2T< TT > &  a,
TT  af 
)
inline

Definition at line 409 of file REveVector.hxx.

◆ NegateXY()

template<typename TT >
void ROOT::Experimental::REveVector2T< TT >::NegateXY ( )
inline

Definition at line 338 of file REveVector.hxx.

◆ Normalize()

template<typename TT >
void ROOT::Experimental::REveVector2T< TT >::Normalize ( TT  length = 1)

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

Definition at line 128 of file REveVector.cxx.

◆ operator const TT *()

template<typename TT >
ROOT::Experimental::REveVector2T< TT >::operator const TT * ( ) const
inline

Definition at line 318 of file REveVector.hxx.

◆ operator TT *()

template<typename TT >
ROOT::Experimental::REveVector2T< TT >::operator TT * ( )
inline

Definition at line 319 of file REveVector.hxx.

◆ operator*=()

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

Definition at line 321 of file REveVector.hxx.

◆ operator+=()

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

Definition at line 322 of file REveVector.hxx.

◆ operator-=()

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

Definition at line 323 of file REveVector.hxx.

◆ operator[]() [1/2]

template<typename TT >
TT & ROOT::Experimental::REveVector2T< TT >::operator[] ( Int_t  idx)
inline

Definition at line 325 of file REveVector.hxx.

◆ operator[]() [2/2]

template<typename TT >
TT ROOT::Experimental::REveVector2T< TT >::operator[] ( Int_t  idx) const
inline

Definition at line 326 of file REveVector.hxx.

◆ Phi()

template<typename TT >
TT ROOT::Experimental::REveVector2T< TT >::Phi
inline

Definition at line 363 of file REveVector.hxx.

◆ Set() [1/4]

template<typename TT >
void ROOT::Experimental::REveVector2T< TT >::Set ( const Double_t v)
inline

Definition at line 332 of file REveVector.hxx.

◆ Set() [2/4]

template<typename TT >
void ROOT::Experimental::REveVector2T< TT >::Set ( const Float_t v)
inline

Definition at line 331 of file REveVector.hxx.

◆ Set() [3/4]

template<typename TT >
template<typename OO >
void ROOT::Experimental::REveVector2T< TT >::Set ( const REveVector2T< OO > &  v)
inline

Definition at line 336 of file REveVector.hxx.

◆ Set() [4/4]

template<typename TT >
void ROOT::Experimental::REveVector2T< TT >::Set ( TT  x,
TT  y 
)
inline

Definition at line 333 of file REveVector.hxx.

◆ SquareDistance()

template<typename TT >
TT ROOT::Experimental::REveVector2T< TT >::SquareDistance ( const REveVector2T< TT > &  v) const
inline

Definition at line 378 of file REveVector.hxx.

◆ Sub()

template<typename TT >
REveVector2T< TT > & ROOT::Experimental::REveVector2T< TT >::Sub ( const REveVector2T< TT > &  p,
const REveVector2T< TT > &  q 
)
inline

Definition at line 400 of file REveVector.hxx.

Member Data Documentation

◆ fX

template<typename TT >
TT ROOT::Experimental::REveVector2T< TT >::fX

Definition at line 307 of file REveVector.hxx.

◆ fY

template<typename TT >
TT ROOT::Experimental::REveVector2T< TT >::fY

Definition at line 307 of file REveVector.hxx.


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