ROOT
git-r3/HEAD
Reference Guide
Loading...
Searching...
No Matches
geomAlice.C
Go to the documentation of this file.
1
/// \file
2
/// \ingroup tutorial_geom
3
/// Script drawing a detector geometry (here ALICE).
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_geomAlice.png width=800px
11
/// \macro_code
12
///
13
/// \author Rene Brun
14
15
void
geomAlice()
16
{
17
TGeoManager::Import
(
"http://root.cern/files/alice2.root"
);
18
gGeoManager
->DefaultColors();
19
// gGeoManager->SetVisLevel(4);
20
gGeoManager
->GetVolume(
"HALL"
)->InvisibleAll();
21
gGeoManager
->GetVolume(
"ZDCC"
)->InvisibleAll();
22
gGeoManager
->GetVolume(
"ZDCA"
)->InvisibleAll();
23
gGeoManager
->GetVolume(
"L3MO"
)->InvisibleAll();
24
gGeoManager
->GetVolume(
"YOUT1"
)->InvisibleAll();
25
gGeoManager
->GetVolume(
"YOUT2"
)->InvisibleAll();
26
gGeoManager
->GetVolume(
"YSAA"
)->InvisibleAll();
27
gGeoManager
->GetVolume(
"RB24"
)->InvisibleAll();
28
gGeoManager
->GetVolume(
"RB26Pipe"
)->InvisibleAll();
29
gGeoManager
->GetVolume(
"DDIP"
)->InvisibleAll();
30
gGeoManager
->GetVolume(
"DCM0"
)->InvisibleAll();
31
// gGeoManager->GetVolume("PPRD")->InvisibleAll();
32
gGeoManager
->GetVolume(
"BRS1"
)->InvisibleAll();
33
gGeoManager
->GetVolume(
"BRS4"
)->InvisibleAll();
34
// gGeoManager->GetVolume("Dipole")->InvisibleAll();
35
gGeoManager
->GetVolume(
"ZN1"
)->InvisibleAll();
36
gGeoManager
->GetVolume(
"Q13T"
)->InvisibleAll();
37
gGeoManager
->GetVolume(
"ZP1"
)->InvisibleAll();
38
gGeoManager
->GetVolume(
"QTD1"
)->InvisibleAll();
39
gGeoManager
->GetVolume(
"QTD2"
)->InvisibleAll();
40
gGeoManager
->GetVolume(
"QBS7"
)->InvisibleAll();
41
gGeoManager
->GetVolume(
"QA07"
)->InvisibleAll();
42
gGeoManager
->GetVolume(
"MD1V"
)->InvisibleAll();
43
gGeoManager
->GetVolume(
"QTD3"
)->InvisibleAll();
44
gGeoManager
->GetVolume(
"QTD4"
)->InvisibleAll();
45
gGeoManager
->GetVolume(
"QTD5"
)->InvisibleAll();
46
gGeoManager
->GetVolume(
"QBS3"
)->InvisibleAll();
47
gGeoManager
->GetVolume(
"QBS4"
)->InvisibleAll();
48
gGeoManager
->GetVolume(
"QBS5"
)->InvisibleAll();
49
gGeoManager
->GetVolume(
"QBS6"
)->InvisibleAll();
50
51
gGeoManager
->GetVolume(
"ALIC"
)->Draw(
"ogl"
);
52
new
TBrowser
;
53
}
gGeoManager
externTGeoManager * gGeoManager
Definition
TGeoManager.h:620
TBrowser
Using a TBrowser one can browse all ROOT objects.
Definition
TBrowser.h:37
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:4162
tutorials
visualisation
geom
geomAlice.C
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1