12 #ifndef ROOT_TGeometry 13 #define ROOT_TGeometry 69 virtual void cd(
const char *path=0);
94 virtual void ls(
Option_t *option=
"rsn2")
const;
98 ,
const char *matrixname=
"",
Option_t *option=
"");
virtual void Browse(TBrowser *b)
Browse.
TRotMatrix * GetCurrentPosition(Double_t *x, Double_t *y, Double_t *z) const
TRotMatrix * GetRotMatrix(const char *name) const
Return pointer to RotMatrix with name.
Double_t fZ
The global translation of the current node.
virtual TObject * FindObject(const char *name) const
Search object identified by name in the geometry tree.
TRotMatrix * GetCurrentMatrix() const
TMaterial ** fMaterialPointer
Pointer to current node.
Double_t fRotMatrix[kMAXLEVELS][kMatrixSize]
virtual void SetPosition(TRotMatrix *matrix, Double_t x=0, Double_t y=0, Double_t z=0)
THashList * GetListOfMaterials() const
TNode * GetCurrentNode() const
virtual ~TGeometry()
Geometry default destructor.
#define ClassDef(name, id)
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
The TNamed class is the base class for all named ROOT classes.
virtual void Local2Master(Double_t *local, Double_t *master)
Convert one point from local system to master reference system.
Bool_t GetCurrentReflection() const
virtual void Node(const char *name, const char *title, const char *shapename, Double_t x=0, Double_t y=0, Double_t z=0, const char *matrixname="", Option_t *option="")
Add a node to the current node in this geometry.
virtual Int_t PushLevel()
Bool_t fIsReflection[kMAXLEVELS]
Manages a detector material.
TNode * fCurrentNode
Pointers to current rotation matrices.
virtual void ls(Option_t *option="rsn2") const
List this geometry.
virtual void UpdateMatrix(TNode *node)
Update global rotation matrix/translation vector for this node this function must be called before in...
Using a TBrowser one can browse all ROOT objects.
TGeometry & operator=(const TGeometry &)
assignment operator
This is the base class for all geometry shapes.
Manages a detector rotation matrix.
TRotMatrix * GetRotMatrixByNumber(Int_t number) const
Return pointer to RotMatrix with number.
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
TMaterial * GetMaterialByNumber(Int_t number) const
Return pointer to Material with number.
Float_t fBomb
Pointers to shapes.
TMaterial * GetMaterial(const char *name) const
Return pointer to Material with name.
TList * GetListOfNodes() const
TShape ** fShapePointer
Pointers to rotation matrices.
TShape * GetShapeByNumber(Int_t number) const
Return pointer to Shape with number.
TRotMatrix ** fMatrixPointer
Pointers to materials.
virtual void Draw(Option_t *option="")
Draw this Geometry.
virtual void SetCurrentNode(TNode *node)
virtual void SetMatrix(TRotMatrix *matrix=0)
TGeometry()
Geometry default constructor.
THashList * GetListOfMatrices() const
TNode * GetNode(const char *name) const
Return pointer to node with name in the geometry tree.
THashList * GetListOfShapes() const
Double_t fTranslation[kMAXLEVELS][kVectorSize]
virtual void SetGeomLevel(Int_t level=0)
Mother of all ROOT objects.
you should not use this method at all Int_t Int_t z
virtual void UpdateTempMatrix(Double_t x=0, Double_t y=0, Double_t z=0, TRotMatrix *matrix=0)
Update temp matrix.
static TObjArray * Get(const char *name)
Static function called by TROOT to search name in the geometry.
virtual void SetBomb(Float_t bomb=1.4)
virtual void cd(const char *path=0)
Change Current Geometry to this.
virtual void Master2Local(Double_t *master, Double_t *local)
Convert one point from master system to local reference system.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
R__EXTERN TGeometry * gGeometry
TShape * GetShape(const char *name) const
Return pointer to Shape with name.
virtual void RecursiveRemove(TObject *obj)
Recursively remove object from a Geometry list.