BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page

BrVector3D


class description - source file - inheritance tree

class BrVector3D : public TObject


    public:
BrVector3D 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 operator+() const BrVector3D Cross(const BrVector3D&) const BrVector3D Unit() const BrVector3D BrVector3D(BrVector3D&) void ~BrVector3D() static TClass* Class() Double_t Distance(const BrVector3D& vect) const Double_t Dot(const BrVector3D&) const Double_t GetX() const Double_t GetY() const Double_t GetZ() const virtual TClass* IsA() const Double_t Norm() const Double_t NormSq() const Bool_t operator!=(const BrVector3D&) const const Double_t& operator()(size_t) const Double_t& operator()(size_t) BrVector3D& operator+=(const BrVector3D&) BrVector3D& operator-=(const BrVector3D&) Bool_t operator==(const BrVector3D&) const const Double_t& operator[](size_t) const Double_t& operator[](size_t) Double_t Phi() const virtual void Print(Option_t* option) const void SetX(Double_t value) void SetY(Double_t value) void SetZ(Double_t value) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) Double_t Theta() const Double_t X() const Double_t Y() const Double_t Z() const

Data Members

    private:
Double_t fX 1. Vector Element Double_t fY 2. Vector Element Double_t fZ 3. Vector Element

Class Description


  BrVector3D 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 Functions


             BrVector3D 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>
Last Update on Wed Sep 11 04:54:13 2002 by

Validate HTML
Validate CSS