]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/geom_vzero.C
Comment code, hide public data-members.
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_vzero.C
1 // $Id$
2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3
4 /**************************************************************************
5  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
7  * full copyright notice.                                                 * 
8  **************************************************************************/
9
10 void geom_vzero()
11 {
12   using namespace std;
13
14   static const TEveException eH("geom_vzero() ");
15
16   gGeoManager = gEve->GetGeometry("$REVESYS/alice-data/alice_fullgeo.root");
17
18   TEveElementList* list = new TEveElementList("VZero");
19   gEve->AddGlobalElement(list);
20
21   TGeoNode* node = 0;
22   TEveGeoTopNode* re;
23
24   TGeoNode* mnode = gGeoManager->GetTopVolume()->FindNode("VZERO_1");
25   if (!mnode) {
26     Error(eH, "mother node not found.");
27     return;
28   }
29
30   node = mnode->GetVolume()->FindNode("V0RI_1");
31   printf("opofoih %p\n", node);
32   if (!node) {
33     Error(eH, "V0R not found.");
34     return;
35   }
36   re = new TEveGeoTopNode(gGeoManager, node);
37   re->UseNodeTrans();
38   gEve->AddGlobalElement(re, list);
39
40   node = mnode->GetVolume()->FindNode("V0LE_1");
41   if (!node) {
42     Error(eH, "V0L not found.");
43     return;
44   }
45   re = new TEveGeoTopNode(gGeoManager, node);
46   re->UseNodeTrans();
47   gEve->AddGlobalElement(re, list);
48
49   gEve->Redraw3D();
50 }