ROOT » GRAF3D » EVE » TEveVectorT<float>

class TEveVectorT<float>


This class is also known as (typedefs to this class)

TEveVector, TEveVectorF

Function Members (Methods)

const float*Arr() const
static TClass*Class()
floatCosTheta() const
TEveVectorT<float>Cross(const TEveVectorT<float>& a) const
floatDistance(const TEveVectorT<float>& v) const
floatDot(const TEveVectorT<float>& a) const
voidDump() const
floatEta() const
TClass*IsA() const
Bool_tIsZero() const
floatMag() const
floatMag2() const
TEveVectorT<float>&Mult(const TEveVectorT<float>& a, float af)
floatNormalize(float length = 1)
const float*operator const float *() const
float*operator float *()
TEveVectorT<float>&operator*=(float s)
TEveVectorT<float>&operator+=(const TEveVectorT<float>& v)
TEveVectorT<float>&operator-=(const TEveVectorT<float>& v)
TEveVectorT<float>&operator=(const TEveVectorT<float>&)
floatoperator[](Int_t idx) const
float&operator[](Int_t idx)
TEveVectorT<float>Orthogonal() const
voidOrthoNormBase(TEveVectorT<float>& a, TEveVectorT<float>& b) const
floatPerp() const
floatPerp2() const
floatPhi() const
floatR() const
voidSet(const Float_t* v)
voidSet(const Double_t* v)
voidSet(const TVector3& v)
voidSet(float x, float y, float z)
voidShowMembers(TMemberInspector& insp) const
floatSquareDistance(const TEveVectorT<float>& v) const
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TEveVectorT<float>&Sub(const TEveVectorT<float>& a, const TEveVectorT<float>& b)
TEveVectorT<float>(const TEveVectorT<float>& v)
TEveVectorT<float>(const Float_t* v)
TEveVectorT<float>(const Double_t* v)
TEveVectorT<float>(const TEveVectorT<float>&)
TEveVectorT<float>(float x, float y, float z)
floatTheta() const

Data Members

floatfXComponents of the vector.
floatfYComponents of the vector.
floatfZComponents of the vector.

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

template<typename TT> void TEveVectorT<TT> Dump() const
 Dump to stdout as "(x, y, z)\n".
template<typename TT> void TEveVectorT<TT> Set(const TVector3& v)
 Set from TVector3.
template<typename TT> TT TEveVectorT<TT> Eta() const
 Calculate eta of the point, pretending it's a momentum vector.
template<typename TT> TT TEveVectorT<TT> Normalize(float length = 1)
 Normalize the vector to length if current length is non-zero.
 Returns the old magnitude.
template<typename TT> TEveVectorT<TT> TEveVectorT<TT> Orthogonal() const
 Returns an orthogonal vector (not normalized).
template<typename TT> void TEveVectorT<TT> OrthoNormBase(TEveVectorT<float>& a, TEveVectorT<float>& b) const
 Set vectors a and b to be normal to this and among themselves,
 both of length 1.
TT TEveVectorT<TT> Phi() const
TT TEveVectorT<TT> Theta() const
TT TEveVectorT<TT> CosTheta() const
TT TEveVectorT<TT> Distance(const TEveVectorT<float>& v) const
TT TEveVectorT<TT> SquareDistance(const TEveVectorT<float>& v) const
TT TEveVectorT<TT> Dot(const TEveVectorT<float>& a) const
TEveVectorT<TT> TEveVectorT<TT> Cross(const TEveVectorT<float>& a) const
TEveVectorT<TT>& TEveVectorT<TT> Sub(const TEveVectorT<float>& a, const TEveVectorT<float>& b)
TEveVectorT<TT>& TEveVectorT<TT> Mult(const TEveVectorT<float>& a, float af)
const TT* Arr() const
{ return &fX; }
TT* Arr()
{ return &fX; }
TEveVectorT& operator*=(float s)
{ fX *= s; fY *= s; fZ *= s; return *this; }
TEveVectorT& operator+=(const TEveVectorT<float>& v)
{ fX += v.fX; fY += v.fY; fZ += v.fZ; return *this; }
TEveVectorT& operator-=(const TEveVectorT<float>& v)
{ fX -= v.fX; fY -= v.fY; fZ -= v.fZ; return *this; }
void Set(const Float_t* v)
{ fX = v[0]; fY = v[1]; fZ = v[2]; }
void Set(const Double_t* v)
{ fX = v[0]; fY = v[1]; fZ = v[2]; }
void Set(float x, float y, float z)
{ fX = x; fY = y; fZ = z; }
void NegateXYZ()
{ fX = - fX; fY = -fY; fZ = -fZ; }
TT Mag2() const
{ return fX*fX + fY*fY + fZ*fZ; }
TT Mag() const
{ return TMath::Sqrt(Mag2()); }
TT Perp2() const
{ return fX*fX + fY*fY; }
TT Perp() const
{ return TMath::Sqrt(Perp2()); }
TT R() const
{ return Perp(); }
Bool_t IsZero() const
{ return fX == 0 && fY == 0 && fZ == 0; }
TT& operator[](Int_t idx)
{ return (&fX)[idx]; }
TT operator[](Int_t idx) const
{ return (&fX)[idx]; }