Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
geomBrahms.C File Reference

Detailed Description

Script drawing a detector geometry (here BRAHMS).

by default the geometry is drawn using the GL viewer Using the TBrowser, you can select other components if the file containing the geometry is not found in the local directory, it is automatically read from the ROOT web site.

void geomBrahms()
{
TGeoManager::Import("http://root.cern/files/brahms.root");
gGeoManager->GetVolume("CAVE")->Draw("ogl");
new TBrowser;
}
externTGeoManager * gGeoManager
Using a TBrowser one can browse all ROOT objects.
Definition TBrowser.h:37
static TGeoManager * Import(const char *filename, const char *name="", Option_t *option="")
static function Import a geometry from a gdml or ROOT file
Author
Rene Brun

Definition in file geomBrahms.C.