|
BrCoordinateSystemclass description - source file - inheritance tree class BrCoordinateSystem : public TObject
private:
Data Members
private:
Class DescriptionCoordinate system class for Brat Geometry. A coordinate system is defined by it's origin and a transformation matrix. The definition of the matrix is such that Vector(MasterSystem) = Rotmatrix*Vector(Local System)+Translation Vector(LocalSystem) = InverseRotMatrix*[vector(msater)-translation]; Both the rotmatrix and the inverse is stored internally for fast access. BrCoordinateSystem() default constrcutor. Do not use normally. The master system is generated. Used by Root i/o (probably). BrCoordinateSystem(const BrVector3D& vector, const BrRotMatrix& rotmatrix) Normal constructor. The vector defines the origin, and the rotation matrix the transformation between systems. BrVector3D RotateToMaster(const BrVector3D& vector) const Get the vector in the Master System. BrVector3D RotateFromMaster(const BrVector3D& vector) const BrVector3D TransformToMaster(const BrVector3D& vector) const Consider the Vector as representing a point that is transformed to the Master system. BrVector3D TransformFromMaster(const BrVector3D& master) const void SetInverseMatrix() private member function to check and set inverse matrix void List() void Print(Option_t* option) const SetRelativeSystem(const BrCoordinateSystem& master, const BrCoordinateSystem& daughter) Return a coordinate system that describes the daughter system relative to the master system. This can be used when transforming between two relative systems. Example BrCoordinateSystem t1_system; BrCoordinateSystem d1_system; BrCoordinateSystem t1d1_system t1d1_system = SetRelativeSystem(d1_system, t1_system); BrVector3D d1_vector = t1td->TransformToMaster(t1_vector); gives the vector (from T1) in the D1 system. See also the tests TestCoord.cxx in the testdirectory. Inline Functions
BrCoordinateSystem& operator=(const BrCoordinateSystem& system)
BrCoordinateSystem BrCoordinateSystem(const BrCoordinateSystem& system)
BrVector3D GetOrigin() const
void SetOrigin(const BrVector3D& vector)
void SetRotMatrix(const BrRotMatrix& rotm)
const BrRotMatrix* GetRotMatrix() const
const BrRotMatrix* GetInverseRotMatrix() const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
void ~BrCoordinateSystem()
|
||||||
|
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|