class HGeomTransform: public TObject

_HADES_CLASS_DESCRIPTION


 HGeomTransform

 Class to hold the orientation (rotation matrix) and the position
 (translation vector) of a coordinate system (system 2) relative to a
 reference coordinate system (system 1)
 It provides member functions to transform a vector or a point and an other
 coordinate system from its own coordinate system into the reference
 coordinate system and vice versa.
 Instances of this class can e.g. hold the lab or detector transformation of
 a geometry volume (see class HGeomVolume)

 Inline functions:

 HGeomTransform()
    The default constructor creates an identity transformation
 HGeomTransform(HGeomTransform& t)
    copy constructor
 void setTransform(const HGeomTransform& t)
    copies the given transformation
 void setRotMatrix(const HGeomRotation& r)
    copies the given rotation matrix
 void setRotMatrix(const Double_t* a)
    creates a rotation matrix taking an Double_t array with 9 components
 void setTransVector(const HGeomVector& t)
    copies the given translation vector
 void setTransVector(const Double_t* a)
    creates a translation vector taking an Double_t array with 6 components
 const HGeomRotation& getRotMatrix() const
    returns the rotation matrix
 const HGeomVector& getTransVector() const
    returns the  translation vector


Function Members (Methods)

public:
HGeomTransform()
HGeomTransform(const HGeomTransform& t)
virtual~HGeomTransform()
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
const HGeomRotation&getRotMatrix() const
virtual const char*TObject::GetTitle() const
const HGeomVector&getTransVector() const
virtual UInt_tTObject::GetUniqueID() 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
voidinvert()
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
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)
HGeomTransform&operator=(const HGeomTransform& t)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
voidprint()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
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)
voidsetRotMatrix(const HGeomRotation& r)
voidsetRotMatrix(const Double_t* a)
voidsetRotMatrix(const Float_t* a)
voidsetTransform(const HGeomTransform& t)
voidsetTransVector(const HGeomVector& t)
voidsetTransVector(const Double_t* a)
voidsetTransVector(const Float_t* a)
virtual voidTObject::SetUniqueID(UInt_t uid)
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
HGeomVectortransFrom(const HGeomVector& p) const
voidtransFrom(const HGeomTransform&)
HGeomVectortransTo(const HGeomVector& p) const
voidtransTo(const HGeomTransform&)
virtual voidTObject::UseCurrentStyle()
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
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

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:
HGeomRotationrotrotation matrix, describing the orientation
HGeomVectortranstranslation vector, describing the position

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

HGeomTransform& operator=(const HGeomTransform& t)
HGeomVector transFrom(const HGeomVector& p)
 Transforms a vector (point) given in its own coordinate
 system (2) into the reference coordinate system (1)
 e.g. v2 is a vector (point) in the detector coordinate system;
 it can be transformed to a vector v2 the lab system with
    HGeomVector v2=mo.transFrom(v1)
 where mo is the coordinate system of the mother
HGeomVector transTo(const HGeomVector& p)
 Transforms a vector (point) given in the reference system (1)
 into the local coordinate system (2)
 e.g. v1 is a vector (point) in the lab system; it can be transformed to
 a vector v2 the detector coordinate system with
    HGeomVector v2=mo.transTo(v1)
 where mo is the coordinate system of the mother
void transTo(const HGeomTransform& s)
 Transforms the coordinate system into the coordinate system
 described by s. Both transformations must have the same reference
 system e.g. the lab system
 This function is e.g. used to transform a daughter coordinate system
 with a transformation relative to the lab into the detector coordinate
 system.
void transFrom(const HGeomTransform& s)
 Transforms the coordinate system described by s into the local
 coordinate system
 This function is e.g. used to transform a daughter coordinate system
 with a transformation relative to its mother into the lab system.
 e.g. daughterDetTransform.transFrom(motherLabTransform)
void clear()
void print()
void invert(void)
inline HGeomTransform(const HGeomTransform& t)
void setTransform(const HGeomTransform& t)
HGeomTransform()
{}
~HGeomTransform()
{}
const HGeomRotation& getRotMatrix() const
{ return rot; }
const HGeomVector& getTransVector() const
{ return trans; }
void setRotMatrix(const HGeomRotation& r)
{ rot=r; }
void setRotMatrix(const Double_t* a)
{ rot.setMatrix(a); }
void setRotMatrix(const Float_t* a)
{ rot.setMatrix(a); }
void setTransVector(const HGeomVector& t)
{ trans=t; }
void setTransVector(const Double_t* a)
{ trans.setVector(a); }
void setTransVector(const Float_t* a)
{ trans.setVector(a); }

Last change: Sat May 22 12:56:44 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.