Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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 /// \macro_code
11 ///
12 /// \author Rene Brun
13 
14 void geomAlice()
15 {
16  TGeoManager::Import("http://root.cern.ch/files/alice2.root");
17  gGeoManager->DefaultColors();
18 // gGeoManager->SetVisLevel(4);
19  gGeoManager->GetVolume("HALL")->InvisibleAll();
20  gGeoManager->GetVolume("ZDCC")->InvisibleAll();
21  gGeoManager->GetVolume("ZDCA")->InvisibleAll();
22  gGeoManager->GetVolume("L3MO")->InvisibleAll();
23  gGeoManager->GetVolume("YOUT1")->InvisibleAll();
24  gGeoManager->GetVolume("YOUT2")->InvisibleAll();
25  gGeoManager->GetVolume("YSAA")->InvisibleAll();
26  gGeoManager->GetVolume("RB24")->InvisibleAll();
27  gGeoManager->GetVolume("RB26Pipe")->InvisibleAll();
28  gGeoManager->GetVolume("DDIP")->InvisibleAll();
29  gGeoManager->GetVolume("DCM0")->InvisibleAll();
30 // gGeoManager->GetVolume("PPRD")->InvisibleAll();
31  gGeoManager->GetVolume("BRS1")->InvisibleAll();
32  gGeoManager->GetVolume("BRS4")->InvisibleAll();
33 // gGeoManager->GetVolume("Dipole")->InvisibleAll();
34  gGeoManager->GetVolume("ZN1")->InvisibleAll();
35  gGeoManager->GetVolume("Q13T")->InvisibleAll();
36  gGeoManager->GetVolume("ZP1")->InvisibleAll();
37  gGeoManager->GetVolume("QTD1")->InvisibleAll();
38  gGeoManager->GetVolume("QTD2")->InvisibleAll();
39  gGeoManager->GetVolume("QBS7")->InvisibleAll();
40  gGeoManager->GetVolume("QA07")->InvisibleAll();
41  gGeoManager->GetVolume("MD1V")->InvisibleAll();
42  gGeoManager->GetVolume("QTD3")->InvisibleAll();
43  gGeoManager->GetVolume("QTD4")->InvisibleAll();
44  gGeoManager->GetVolume("QTD5")->InvisibleAll();
45  gGeoManager->GetVolume("QBS3")->InvisibleAll();
46  gGeoManager->GetVolume("QBS4")->InvisibleAll();
47  gGeoManager->GetVolume("QBS5")->InvisibleAll();
48  gGeoManager->GetVolume("QBS6")->InvisibleAll();
49 
50  gGeoManager->GetVolume("ALIC")->Draw("ogl");
51  new TBrowser;
52 }