ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
geomAlice_itsv.C
Go to the documentation of this file.
1 //script drawing a detector geometry (here ITSV from 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_itsv() {
9  TGeoManager::Import("http://root.cern.ch/files/alice2.root");
11  gGeoManager->GetVolume("ITSV")->Draw("ogl");
12  new TBrowser;
13 }
virtual void Draw(Option_t *option="")
draw top volume according to option
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.
void geomAlice_itsv()
Definition: geomAlice_itsv.C:8
static TGeoManager * Import(const char *filename, const char *name="", Option_t *option="")
static function Import a geometry from a gdml or ROOT file