ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
geomAlice.C
Go to the documentation of this file.
1 //script drawing a detector geometry (here ALICE)
2 //by default the geometry is drawn using the GL viewer
3 //Using the TBrowser, you can select other components
4 //if the file containing the geometry is not found in the local
5 //directory, it is automatically read from the ROOT web site.
6 // Author: Rene Brun
7 
8 void geomAlice()
9 {
10  TGeoManager::Import("http://root.cern.ch/files/alice2.root");
12 // gGeoManager->SetVisLevel(4);
17  gGeoManager->GetVolume("YOUT1")->InvisibleAll();
18  gGeoManager->GetVolume("YOUT2")->InvisibleAll();
21  gGeoManager->GetVolume("RB26Pipe")->InvisibleAll();
24 // gGeoManager->GetVolume("PPRD")->InvisibleAll();
27 // gGeoManager->GetVolume("Dipole")->InvisibleAll();
43 
44  gGeoManager->GetVolume("ALIC")->Draw("ogl");
45  new TBrowser;
46 }
void geomAlice()
Definition: geomAlice.C:8
virtual void Draw(Option_t *option="")
draw top volume according to option
void InvisibleAll(Bool_t flag=kTRUE)
Make volume and each of it daughters (in)visible.
Definition: TGeoVolume.cxx:780
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:41
void DefaultColors()
Set default volume colors according to A of material.
R__EXTERN TGeoManager * gGeoManager
Definition: TGeoManager.h:556
TGeoVolume * GetVolume(const char *name) const
Search for a named volume. All trailing blanks stripped.
static TGeoManager * Import(const char *filename, const char *name="", Option_t *option="")
static function Import a geometry from a gdml or ROOT file