]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/geom_vzero.C
fix coverity
[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   static const TEveException kEH("geom_vzero() ");
13
14   gGeoManager = gEve->GetDefaultGeometry();
15
16   TEveElementList* list = new TEveElementList("VZero");
17   gEve->AddGlobalElement(list);
18
19   TGeoNode* node = 0;
20   TEveGeoTopNode* re;
21
22   TGeoNode* mnode = gGeoManager->GetTopVolume()->FindNode("VZERO_1");
23   if (!mnode) {
24     Error(kEH, "mother node not found.");
25     return;
26   }
27
28   node = mnode->GetVolume()->FindNode("V0RI_1");
29   printf("opofoih %p\n", node);
30   if (!node) {
31     Error(kEH, "V0R not found.");
32     return;
33   }
34   re = new TEveGeoTopNode(gGeoManager, node);
35   re->UseNodeTrans();
36   gEve->AddGlobalElement(re, list);
37
38   node = mnode->GetVolume()->FindNode("V0LE_1");
39   if (!node) {
40     Error(kEH, "V0L not found.");
41     return;
42   }
43   re = new TEveGeoTopNode(gGeoManager, node);
44   re->UseNodeTrans();
45   gEve->AddGlobalElement(re, list);
46
47   gEve->Redraw3D();
48 }