Logo ROOT   6.08/07
Reference Guide
geomAlice_itsv.C
Go to the documentation of this file.
1 /// \file
2 /// \ingroup tutorial_geom
3 /// Script drawing a detector geometry (here ITSV from Alice).
4 ///
5 /// By default the geometry is drawn using the GL viewer
6 /// Using the TBrowser, you can select other components
7 /// if the file containing the geometry is not found in the local
8 /// directory, it is automatically read from the ROOT web site.
9 ///
10 /// \macro_code
11 ///
12 /// \author Rene Brun
13 
14 void geomAlice_itsv() {
15  TGeoManager::Import("http://root.cern.ch/files/alice2.root");
17  gGeoManager->GetVolume("ITSV")->Draw("ogl");
18  new TBrowser;
19 }
virtual void Draw(Option_t *option="")
draw top volume according to option
TGeoVolume * GetVolume(const char *name) const
Search for a named volume. All trailing blanks stripped.
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:554
static TGeoManager * Import(const char *filename, const char *name="", Option_t *option="")
static function Import a geometry from a gdml or ROOT file