#include "hgeomvolume.h"

HGeomVolume


class description - source file - inheritance tree (.pdf)

class HGeomVolume : public TNamed

Inheritance Chart:
TObject
<-
TNamed
<-
HGeomVolume
<-
HGeomCompositeVolume
HGeomNode

    public:
HGeomVolume() HGeomVolume(HGeomVolume&) virtual ~HGeomVolume() static TClass* Class() virtual void clear() void createPoints(const Int_t) const TString& getMother() const const TString& getName() const Int_t getNumPoints() HGeomVector* getPoint(const Int_t n) const TString& getShape() const HGeomTransform& getTransform() virtual TClass* IsA() const HGeomVolume& operator=(const HGeomVolume&) virtual void print() void setMother(const Text_t* s) void setName(const Text_t* s) void setPoint(const Int_t, const Double_t, const Double_t, const Double_t) void setPoint(const Int_t, const HGeomVector&) void setShape(const Text_t* s) void setVolumePar(HGeomVolume&) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
TString shape Geant shape of the volume TString mother name of the mother volume TObjArray* points array of points (type HGeomVector) HGeomTransform transform transformation relative to the mother system Int_t nPoints number of points

Class Description

 HGeomVolume

 Class to hold the basic geometry properties of a volume
 Each volume has a name, a pointer to a reference volume and
 a lab transformation.
 The reference volume defines the shape, the mother, the size
 and the transformation relative to the mother volume which
 is either the cave (for modules) or the detector (for the
 inner parts).
 As an example:
 The Mdc modules built at GSI (plane 1 type) are all identical
 independent where the sit in the cave. This module type has a
 fixed coordinate system. The first layers in all these modules
 are identical and they have the same position in the module
 coordinate system.



HGeomVolume(HGeomVolume& r)
 copy constructor

void setVolumePar(HGeomVolume& r)
 copies all volume parameters except the name

void createPoints(const Int_t n)
 Creates n Points (objects of class HGeomVector).
 If the array exists already and the size is different from n it is
 deleted and recreated with the new size n.
 If n==0 the points are deleted.

void setPoint(const Int_t n,const Double_t x, const Double_t y,const Double_t z)
 set the 3 values of the point with index n

void setPoint(const Int_t n,const HGeomVector& p)
 sets point with index n by copying the 3 components of point p

void clear()
 clears the volume
 deletes the points

void print()
 prints all parameters of a volume



Inline Functions


                   void ~HGeomVolume()
            HGeomVolume HGeomVolume(HGeomVolume&)
         const TString& getName() const
         const TString& getShape() const
         const TString& getMother() const
        HGeomTransform& getTransform()
                  Int_t getNumPoints()
           HGeomVector* getPoint(const Int_t n)
                   void setName(const Text_t* s)
                   void setShape(const Text_t* s)
                   void setMother(const Text_t* s)
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
           HGeomVolume& operator=(const HGeomVolume&)


Last update: 27/05/99


ROOT page - Class index - Class Hierarchy - Top of the page

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.