Logo ROOT  
Reference Guide
geomAtlas.C File Reference

Detailed Description

Script drawing a detector geometry (here ATLAS).

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 geomAtlas() {
TGeoManager::Import("http://root.cern.ch/files/atlas.root");
//gGeoManager->DefaultColors();
//gGeoManager->SetVisLevel(4);
gGeoManager->GetVolume("ATLS")->Draw("ogl");
new TBrowser;
}
Author
Rene Brun

Definition in file geomAtlas.C.

TBrowser
Definition: TBrowser.h:37
gGeoManager
R__EXTERN TGeoManager * gGeoManager
Definition: TGeoManager.h:602
TGeoManager::GetVolume
TGeoVolume * GetVolume(const char *name) const
Search for a named volume. All trailing blanks stripped.
Definition: TGeoManager.cxx:2710
TGeoVolume::Draw
virtual void Draw(Option_t *option="")
draw top volume according to option
Definition: TGeoVolume.cxx:1146
TGeoManager::SetMaxVisNodes
void SetMaxVisNodes(Int_t maxnodes=10000)
set the maximum number of visible nodes.
Definition: TGeoManager.cxx:2180
TGeoManager::Import
static TGeoManager * Import(const char *filename, const char *name="", Option_t *option="")
static function Import a geometry from a gdml or ROOT file
Definition: TGeoManager.cxx:3817