Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
geomAtlas.C
Go to the documentation of this file.
1/// \file
2/// \ingroup tutorial_geom
3/// Script drawing a detector geometry (here ATLAS).
4///
5/// by default the geometry is drawn using the GL viewer
6/// Using the TBrowser, you can select other components
7/// if the file containing the geometry is not found in the local
8/// directory, it is automatically read from the ROOT web site.
9///
10/// \image html geom_geomAtlas.png width=800px
11/// \macro_code
12///
13/// \author Rene Brun
14
15void geomAtlas() {
16 TGeoManager::Import("http://root.cern.ch/files/atlas.root");
17 //gGeoManager->DefaultColors();
19 //gGeoManager->SetVisLevel(4);
20 gGeoManager->GetVolume("ATLS")->Draw("ogl");
21 new TBrowser;
22}
R__EXTERN TGeoManager * 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
TGeoVolume * GetVolume(const char *name) const
Search for a named volume. All trailing blanks stripped.
void SetMaxVisNodes(Int_t maxnodes=10000)
set the maximum number of visible nodes.
void Draw(Option_t *option="") override
draw top volume according to option