BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page

BrCoordinateSystem


class description - source file - inheritance tree

class BrCoordinateSystem : public TObject

    private:
void SetInverseMatrix() public:
BrCoordinateSystem BrCoordinateSystem() BrCoordinateSystem BrCoordinateSystem(const BrVector3D&, const BrRotMatrix&) BrCoordinateSystem BrCoordinateSystem(const BrCoordinateSystem& system) static BrCoordinateSystem SetRelativeSystem(const BrCoordinateSystem& master, const BrCoordinateSystem& daughter) virtual void ~BrCoordinateSystem() static TClass* Class() const BrRotMatrix* GetInverseRotMatrix() const BrVector3D GetOrigin() const const BrRotMatrix* GetRotMatrix() const virtual TClass* IsA() const void List() BrCoordinateSystem& operator=(const BrCoordinateSystem& system) virtual void Print(Option_t* option) const BrVector3D RotateFromMaster(const BrVector3D&) const BrVector3D RotateToMaster(const BrVector3D&) const void SetOrigin(const BrVector3D& vector) void SetRotMatrix(const BrRotMatrix& rotm) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) BrVector3D TransformFromMaster(const BrVector3D&) const BrVector3D TransformToMaster(const BrVector3D&) const

Data Members

    private:
BrVector3D fOrigin Origin for system in Master system BrRotMatrix fRotMatrix Rotation matrix for the system. BrRotMatrix fInverseRotMatrix Inverse Rotation matrix for the system

Class Description

  Coordinate 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>
Last Update on 2002/02/26 08:58:43 $ by cholm $

Validate HTML
Validate CSS