|
BrVector3Dclass description - source file - inheritance tree class BrVector3D : public TObjectpublic: Data Membersprivate: Class DescriptionBrVector3D defines a general 3-vector class. It can be used to represent space points, directions, and momenta.BrVector3D is part of the geometry classes. This is a general class only coupled to ROOT by having the objects being derived from TObject. The main reasons for doing this is to be able to use the ROOTs interactive features. It is intended to be used by detector geometry , tracking, and display classes by using common geometry concepts. It is also intended to work together with other geometry clasess like BrLine3D, BrPlane3D and likely other The coupling to ROOT is loose. The classes are derived from TObject, mainly to be able to use browsers and other general ROOT utilities. Drawing has not been implemented here again to maintain a very loose coupling. Vectors are intrinsicly represented by doubles, particular to maintain precesion in calculation of angles, intercepts. Such general classes has of course been implemented by numerous people, and design choices made. As such example the CLHEP should be acknowledged. Double_t Norm() const Magnitude of norm of vector Double_t NormSq() const Squared Magnitude of vector Double_t Dot(const BrVector3D& vec) const Dot product of two vector BrVector3D Cross(const BrVector3D& vec) const Cross product of two vectors BrVector3D Unit() const Double_t Theta() const Polar angle with regard to z axis Double_t Phi() const Azimuth angle with regard to z axis void Print(Option_t* option = "") const Distance(const BrVector3D &vec) const Inline FunctionsBrVector3D BrVector3D(const Double_t x = 0.0, const Double_t y = 0.0, const Double_t z = 0.0) BrVector3D BrVector3D(const Float_t* pos) BrVector3D BrVector3D(const Double_t* pos) BrVector3D& operator+=(const BrVector3D&) BrVector3D& operator-=(const BrVector3D&) BrVector3D operator-() const BrVector3D operator+() const const Double_t& operator[](size_t) const Double_t& operator[](size_t) const Double_t& operator()(size_t) const Double_t& operator()(size_t) Bool_t operator==(const BrVector3D&) const Bool_t operator!=(const BrVector3D&) const Double_t GetX() const Double_t GetY() const Double_t GetZ() const Double_t X() const Double_t Y() const Double_t Z() const void SetX(Double_t value) void SetY(Double_t value) void SetZ(Double_t value) TClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) BrVector3D BrVector3D(BrVector3D&) void ~BrVector3D() |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|