class HGeomVector: public TObject

_HADES_CLASS_DESCRIPTION


 HGeomVector

 This class defines a vector with 3 Double_t components.
 Instantiations of this class are e.g geometry points and
 translation vectors in the geometry transformations.

 All functions and operators are defined inline.

 Constructors:
   HGeomVector(Double_t dx=0,Double_t dy=0,Double_t dz=0)
   HGeomVector(const HGeomVector& v)

 Access to the components:
   void setVector(const Double_t* a);
   void setX(const Double_t a)
   void setY(const Double_t a)
   void setZ(const Double_t a)
   Double_t getX() const
   Double_t getY() const
   Double_t getZ() const
   Double_t operator() (const Int_t i) const;

 Check for the size of all components:
   Bool_t operator < (const Double_t a)
   Bool_t operator <= (const Double_t a)
   Bool_t operator > (const Double_t a)
   Bool_t operator >= (const Double_t a)

 Check for equality/inequality;
   Bool_t operator == (const HGeomVector& v) const
   Bool_t operator != (const HGeomVector& v) const

 Addition/Substraction of a vector;
   HGeomVector& operator += (const Double_t a)
   HGeomVector& operator -= (const Double_t a)

 Addition/Substraction of two vectors;
   HGeomVector operator + (const HGeomVector& v) const
   HGeomVector operator - (const HGeomVector& v) const

 Multiplication/Division of each components with/by a factor
   HGeomVector& operator *= (const Double_t a)
   HGeomVector& operator /= (const Double_t a)


 HGeomVector operator - () const
      changes the sign of all components

 HGeomVector& operator = (const HGeomVector& v)
      assignment

 HGeomVector& abs()
      builds absolute value of each components

 Double_t scalarProduct(const HGeomVector& v) const;
      returns the scalar product

 HGeomVector vectorProduct(const HGeomVector& v) const;
      returns the vector product

 Double_t length() const {return sqrt(x*x+y*y+z*z);}
      returns the length

  void clear()
      sets all components to 0.0

 void print()
      prints the components

 void round(Int_t n)
      rounds all components to a precision with n digits

 friend ostream& operator << (ostream& put,const HGeomVector& v);
      output to stream

 friend istream& operator >> (istream& get,HGeomVector& v);
      input from stream


Function Members (Methods)

public:
HGeomVector(const HGeomVector& v)
HGeomVector(Double_t dx = 0, Double_t dy = 0, Double_t dz = 0)
virtual~HGeomVector()
HGeomVector&abs()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
voidclear()
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Double_tgetX() const
Double_tgetY() const
Double_tgetZ() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
Double_tlength() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
Bool_toperator!=(const HGeomVector& v) const
Double_toperator()(const Int_t i) const
HGeomVector&operator*=(const Double_t a)
HGeomVectoroperator+(const HGeomVector& v) const
HGeomVector&operator+=(const Double_t a)
HGeomVector&operator+=(const HGeomVector& v)
HGeomVectoroperator-() const
HGeomVectoroperator-(const HGeomVector& v) const
HGeomVector&operator-=(const Double_t a)
HGeomVector&operator-=(const HGeomVector& v)
HGeomVector&operator/=(const Double_t a)
Bool_toperator<(const Double_t a)
Bool_toperator<=(const Double_t a)
HGeomVector&operator=(const HGeomVector& v)
Bool_toperator==(const HGeomVector& v) const
Bool_toperator>(const Double_t a)
Bool_toperator>=(const Double_t a)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
voidprint() const
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
voidround(Int_t n)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
Double_tscalarProduct(const HGeomVector& v) const
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidsetVector(const Double_t* a)
voidsetVector(const Float_t* a)
voidsetX(const Double_t a)
voidsetXYZ(const Double_t xx, const Double_t yy, const Double_t zz)
voidsetY(const Double_t a)
voidsetZ(const Double_t a)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
HGeomVectorvectorProduct(const HGeomVector& v) const
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
Double_t&X()
Double_t&Y()
Double_t&Z()
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
voidround(Double_t d, Int_t n)

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Double_tx
Double_ty
Double_tz

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void setVector(const Double_t* a)
void setVector(const Float_t* a)
Double_t operator()(const Int_t i) const
HGeomVector& abs()
Double_t scalarProduct(const HGeomVector& v) const
HGeomVector vectorProduct(const HGeomVector& v) const
void round(Double_t d, Int_t n)
 rounds d to a precision with n digits
void round(Int_t n)
 rounds every component to a precision with n digits
HGeomVector(Double_t dx = 0, Double_t dy = 0, Double_t dz = 0)
{}
HGeomVector(const HGeomVector& v)
{}
~HGeomVector()
{}
Double_t & X()
{return x;}
Double_t & Y()
{return y;}
Double_t & Z()
{return z;}
Double_t getX() const
{return x;}
Double_t getY() const
{return y;}
Double_t getZ() const
{return z;}
void setXYZ(const Double_t xx, const Double_t yy, const Double_t zz)
void setX(const Double_t a)
{x=a;}
void setY(const Double_t a)
{y=a;}
void setZ(const Double_t a)
{z=a;}
Double_t length() const
{return sqrt(x*x+y*y+z*z);}
void clear()
{x=y=z=0.;}
void print() const
{printf("%10.3f%10.3f%10.3f\n",x,y,z);}

Last change: Sat May 22 12:56:50 2010
Last generated: 2010-05-22 12:56

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.