ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
geomAtlas.C
Go to the documentation of this file.
1 //script drawing a detector geometry (here ATLAS)
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 geomAtlas() {
9  TGeoManager::Import("http://root.cern.ch/files/atlas.root");
10  //gGeoManager->DefaultColors();
12  //gGeoManager->SetVisLevel(4);
13  gGeoManager->GetVolume("ATLS")->Draw("ogl");
14  new TBrowser;
15 }
virtual void Draw(Option_t *option="")
draw top volume according to option
void geomAtlas()
Definition: geomAtlas.C:8
void SetMaxVisNodes(Int_t maxnodes=10000)
set the maximum number of visible nodes.
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