]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/geom_vzero.C
Modified macros to be compilable by ACLiC
[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 #if !defined(__CINT__) || defined(__MAKECINT__)
11 #include <TGeoManager.h>
12 #include <TGeoNode.h>
13 #include <TEveManager.h>
14 #include <TEveElement.h>
15 #include <TEveGeoNode.h>
16 #endif
17
18 void geom_vzero()
19 {
20   static const TEveException kEH("geom_vzero() ");
21
22   gGeoManager = gEve->GetDefaultGeometry();
23
24   TEveElementList* list = new TEveElementList("VZero");
25   gEve->AddGlobalElement(list);
26
27   TGeoNode* node = 0;
28   TEveGeoTopNode* re;
29
30   TGeoNode* mnode = gGeoManager->GetTopVolume()->FindNode("VZERO_1");
31   if (!mnode) {
32     Error(kEH, "mother node not found.");
33     return;
34   }
35
36   node = mnode->GetVolume()->FindNode("V0RI_1");
37   printf("opofoih %p\n", node);
38   if (!node) {
39     Error(kEH, "V0R not found.");
40     return;
41   }
42   re = new TEveGeoTopNode(gGeoManager, node);
43   re->UseNodeTrans();
44   gEve->AddGlobalElement(re, list);
45
46   node = mnode->GetVolume()->FindNode("V0LE_1");
47   if (!node) {
48     Error(kEH, "V0L not found.");
49     return;
50   }
51   re = new TEveGeoTopNode(gGeoManager, node);
52   re->UseNodeTrans();
53   gEve->AddGlobalElement(re, list);
54
55   gEve->Redraw3D();
56 }