REveVectorT A three-vector template without TObject inheritance and virtual functions.
Minimal, templated three-vector.
No TObject inheritance and virtual functions. Also used in VSD.
Definition at line 29 of file REveVector.hxx.
Public Member Functions | |
REveVectorT ()=default | |
REveVectorT (const Double_t *v) | |
REveVectorT (const Float_t *v) | |
template<typename OO > | |
REveVectorT (const REveVectorT< OO > &v) | |
REveVectorT (TT x, TT y, TT z) | |
TT * | Arr () |
const TT * | Arr () const |
TT | CosTheta () const |
REveVectorT | Cross (const REveVectorT &a) const |
TT | Distance (const REveVectorT &v) const |
TT | Dot (const REveVectorT &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 |
REveVectorT & | Mult (const REveVectorT &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 * () | |
REveVectorT & | operator*= (TT s) |
REveVectorT & | operator+= (const REveVectorT &v) |
REveVectorT & | operator-= (const REveVectorT &v) |
TT & | operator[] (Int_t idx) |
TT | operator[] (Int_t idx) const |
REveVectorT | Orthogonal () const |
Returns an orthogonal vector (not normalized). More... | |
void | OrthoNormBase (REveVectorT &a, REveVectorT &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 REveVectorT< OO > &v) |
void | Set (const TVector3 &v) |
Set from TVector3. More... | |
void | Set (TT x, TT y, TT z) |
TT | SquareDistance (const REveVectorT &v) const |
REveVectorT & | Sub (const REveVectorT &a, const REveVectorT &b) |
TT | Theta () const |
Public Attributes | |
TT | fX {0} |
TT | fY {0} |
TT | fZ {0} |
#include <ROOT/REveVector.hxx>
|
default |
|
inline |
Definition at line 35 of file REveVector.hxx.
|
inline |
Definition at line 36 of file REveVector.hxx.
|
inline |
Definition at line 37 of file REveVector.hxx.
|
inline |
Definition at line 38 of file REveVector.hxx.
|
inline |
Definition at line 62 of file REveVector.hxx.
|
inline |
Definition at line 56 of file REveVector.hxx.
|
inline |
Definition at line 139 of file REveVector.hxx.
|
inline |
Definition at line 171 of file REveVector.hxx.
|
inline |
Definition at line 146 of file REveVector.hxx.
|
inline |
Definition at line 164 of file REveVector.hxx.
void ROOT::Experimental::REveVectorT< TT >::Dump |
Dump to stdout as "(x, y, z)\n".
Definition at line 28 of file REveVector.cxx.
TT ROOT::Experimental::REveVectorT< TT >::Eta |
Calculate eta of the point, pretending it's a momentum vector.
Definition at line 44 of file REveVector.cxx.
|
inline |
Definition at line 116 of file REveVector.hxx.
|
inline |
Definition at line 97 of file REveVector.hxx.
|
inline |
Definition at line 96 of file REveVector.hxx.
|
inline |
Definition at line 192 of file REveVector.hxx.
|
inline |
Definition at line 88 of file REveVector.hxx.
TT ROOT::Experimental::REveVectorT< 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 REveVector.cxx.
|
inline |
Definition at line 70 of file REveVector.hxx.
|
inline |
Definition at line 71 of file REveVector.hxx.
|
inline |
Definition at line 76 of file REveVector.hxx.
|
inline |
Definition at line 77 of file REveVector.hxx.
|
inline |
Definition at line 78 of file REveVector.hxx.
|
inline |
Definition at line 74 of file REveVector.hxx.
|
inline |
Definition at line 73 of file REveVector.hxx.
REveVectorT< TT > ROOT::Experimental::REveVectorT< TT >::Orthogonal |
Returns an orthogonal vector (not normalized).
Definition at line 70 of file REveVector.cxx.
void ROOT::Experimental::REveVectorT< TT >::OrthoNormBase | ( | REveVectorT< TT > & | a, |
REveVectorT< 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 REveVector.cxx.
|
inline |
Definition at line 100 of file REveVector.hxx.
|
inline |
Definition at line 99 of file REveVector.hxx.
|
inline |
Definition at line 125 of file REveVector.hxx.
|
inline |
Definition at line 101 of file REveVector.hxx.
|
inline |
Definition at line 81 of file REveVector.hxx.
|
inline |
Definition at line 80 of file REveVector.hxx.
|
inline |
Definition at line 86 of file REveVector.hxx.
void ROOT::Experimental::REveVectorT< TT >::Set | ( | const TVector3 & | v | ) |
Set from TVector3.
Definition at line 36 of file REveVector.cxx.
|
inline |
Definition at line 82 of file REveVector.hxx.
|
inline |
Definition at line 155 of file REveVector.hxx.
|
inline |
Definition at line 182 of file REveVector.hxx.
|
inline |
Definition at line 132 of file REveVector.hxx.
TT ROOT::Experimental::REveVectorT< TT >::fX {0} |
Definition at line 31 of file REveVector.hxx.
TT ROOT::Experimental::REveVectorT< TT >::fY {0} |
Definition at line 31 of file REveVector.hxx.
TT ROOT::Experimental::REveVectorT< TT >::fZ {0} |
Definition at line 31 of file REveVector.hxx.