ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
geomBrahms.C
Go to the documentation of this file.
1 //script drawing a detector geometry (here BRAHMS)
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 geomBrahms() {
9  TGeoManager::Import("http://root.cern.ch/files/brahms.root");
10  gGeoManager->GetVolume("CAVE")->Draw("ogl");
11  new TBrowser;
12 }
virtual void Draw(Option_t *option="")
draw top volume according to option
void geomBrahms()
Definition: geomBrahms.C:8
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:41
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