library: libPhysics
#include "TVector3.h"

TVector3


class description - header file - source file - inheritance tree (.pdf)

class TVector3 : public TObject

Inheritance Chart:
TObject
<-
TVector3

    public:
TVector3(Double_t x = 0.0, Double_t y = 0.0, Double_t z = 0.0) TVector3(const Double_t*) TVector3(const Float_t*) TVector3(const TVector3&) TVector3 operator-() const TVector3 Unit() const TVector3 Orthogonal() const TVector3 Cross(const TVector3& p) const virtual ~TVector3() Double_t Angle(const TVector3& q) const static TClass* Class() Double_t CosTheta() const Double_t DeltaPhi(const TVector3& v) const Double_t DeltaR(const TVector3& v) const Double_t Dot(const TVector3& p) const Double_t DrEtaPhi(const TVector3& v) const Double_t Eta() const TVector2 EtaPhiVector() const void GetXYZ(Double_t* carray) const void GetXYZ(Float_t* carray) const virtual TClass* IsA() const Double_t Mag() const Double_t Mag2() const Bool_t operator!=(const TVector3& v) const Double_t operator()(int) const Double_t& operator()(int) TVector3& operator*=(Double_t a) TVector3& operator*=(const TRotation&) TVector3& operator+=(const TVector3& p) TVector3& operator-=(const TVector3& p) TVector3& operator=(const TVector3& p) Bool_t operator==(const TVector3& v) const Double_t operator[](int i) const Double_t& operator[](int i) Double_t Perp() const Double_t Perp(const TVector3& p) const Double_t Perp2() const Double_t Perp2(const TVector3& p) const Double_t Phi() const virtual void Print(Option_t* option = "") const Double_t PseudoRapidity() const Double_t Pt() const Double_t Pt(const TVector3& p) const Double_t Px() const Double_t Py() const Double_t Pz() const void Rotate(Double_t, const TVector3&) void RotateUz(const TVector3&) void RotateX(Double_t) void RotateY(Double_t) void RotateZ(Double_t) void SetMag(Double_t ma) void SetMagThetaPhi(Double_t mag, Double_t theta, Double_t phi) void SetPerp(Double_t r) void SetPhi(Double_t ph) void SetPtEtaPhi(Double_t pt, Double_t eta, Double_t phi) void SetPtThetaPhi(Double_t pt, Double_t theta, Double_t phi) void SetTheta(Double_t th) void SetX(Double_t x) void SetXYZ(Double_t x, Double_t y, Double_t z) void SetY(Double_t y) void SetZ(Double_t z) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) Double_t Theta() const TVector3& Transform(const TRotation&) Double_t x() const Double_t X() const TVector2 XYvector() const Double_t y() const Double_t Y() const Double_t z() const Double_t Z() const

Data Members

    private:
Double_t fX Double_t fY Double_t fZ

Class Description

TVector3(const TVector3 & p)
TVector3(Double_t x, Double_t y, Double_t z)
TVector3(const Double_t * x0)
TVector3(const Float_t * x0)
~TVector3()
TVector3 & Transform(const TRotation & m)
transform this vector with a TRotation
void RotateX(Double_t angle)
rotate vector around X
void RotateY(Double_t angle)
rotate vector around Y
void RotateZ(Double_t angle)
rotate vector around Z
void Rotate(Double_t angle, const TVector3 & axis)
rotate vector
void RotateUz(const TVector3& NewUzVector)
 NewUzVector must be normalized !
Double_t PseudoRapidity()
Double_t m = Mag();
return 0.5*log( (m+fZ)/(m-fZ) );
 guard against Pt=0
void SetPtEtaPhi(Double_t pt, Double_t eta, Double_t phi)
set Pt, Eta and Phi
void SetPtThetaPhi(Double_t pt, Double_t theta, Double_t phi)
set Pt, Theta and Phi
void Streamer(TBuffer &R__b)
 Stream an object of class TVector3.
void Print(Option_t*)
print vector parameters









































Double_t x()
Double_t y()
Double_t z()
Double_t X()
Double_t Y()
Double_t Z()
Double_t Px()
Double_t Py()
Double_t Pz()
void SetX(Double_t)
void SetY(Double_t)
void SetZ(Double_t)
void SetXYZ(Double_t x, Double_t y, Double_t z)
void GetXYZ(Double_t *carray)
void GetXYZ(Float_t *carray)
Double_t Phi()
Double_t Theta()
Double_t CosTheta()
Double_t Mag2()
Double_t Mag()
void SetPhi(Double_t)
void SetTheta(Double_t)
void SetMag(Double_t)
Double_t Perp2()
Double_t Pt()
Double_t Perp()
void SetPerp(Double_t)
Double_t Perp2(const TVector3 &)
Double_t Pt(const TVector3 &)
Double_t Perp(const TVector3 &)
Double_t DeltaPhi(const TVector3 &)
Double_t DeltaR(const TVector3 &)
Double_t DrEtaPhi(const TVector3 &)
TVector2 EtaPhiVector()
void SetMagThetaPhi(Double_t mag, Double_t theta, Double_t phi)
TVector3 Unit()
TVector3 Orthogonal()
Double_t Dot(const TVector3 &)
TVector3 Cross(const TVector3 &)
Double_t Angle(const TVector3 &)
Double_t Eta()
TVector2 XYvector()

Author: Pasha Murat, Peter Malzacher 12/02/99
Last update: root/physics:$Name: $:$Id: TVector3.cxx,v 1.9 2006/05/16 08:13:31 brun Exp $


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.