AliRoot Core  3dc7879 (3dc7879)
MUONGeometryViewingHelper.C File Reference

Macro providing methods helping in viewing geometry. More...

#include <Riostream.h>
#include <TObjArray.h>
#include <TBrowser.h>
#include <TGeoManager.h>
#include <TGeoVolume.h>
Include dependency graph for MUONGeometryViewingHelper.C:

Go to the source code of this file.

Functions

void visibilityOff ()
 
void setVisibility (const TString &volumeName, Bool_t visibility=kTRUE)
 
void setDaughtersVisibility (const TString &volumeName, Bool_t visibility=kTRUE)
 
void buildGeometry (Bool_t allVisible=kFALSE)
 

Detailed Description

Macro providing methods helping in viewing geometry.

To be run from aliroot:

root[0] .x MUONGeometryViewingHelper.C
root[0] buildGeometry();
Author
: I. Hrivnacova, IPN Orsay

Definition in file MUONGeometryViewingHelper.C.

Function Documentation

void buildGeometry ( Bool_t  allVisible = kFALSE)

Load geometry from the file, make all volumes invisible

Definition at line 102 of file MUONGeometryViewingHelper.C.

void setDaughtersVisibility ( const TString &  volumeName,
Bool_t  visibility = kTRUE 
)

Set visibility to daughter of the volume specified by name. If the daughter volume is an assembly the visibility setting is propagated to its real volumes daughters.

Definition at line 68 of file MUONGeometryViewingHelper.C.

void setVisibility ( const TString &  volumeName,
Bool_t  visibility = kTRUE 
)

Set visibility to the volume specified by name

Definition at line 54 of file MUONGeometryViewingHelper.C.

void visibilityOff ( )

Set all volumes invisible

Definition at line 41 of file MUONGeometryViewingHelper.C.

Referenced by buildGeometry().