]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/alice-macros/geom_vzero.C
Remove trailing whitespace.
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_vzero.C
CommitLineData
197639c0 1// $Id$
d810d0de 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 *
51346b82 7 * full copyright notice. *
d810d0de 8 **************************************************************************/
197639c0 9
10void geom_vzero()
11{
12 using namespace std;
13
84aff7a4 14 static const TEveException eH("geom_vzero() ");
c74b78cd 15
84aff7a4 16 gGeoManager = gEve->GetGeometry("$REVESYS/alice-data/alice_fullgeo.root");
197639c0 17
84aff7a4 18 TEveElementList* list = new TEveElementList("VZero");
19 gEve->AddGlobalElement(list);
197639c0 20
c74b78cd 21 TGeoNode* node = 0;
84aff7a4 22 TEveGeoTopNode* re;
197639c0 23
c74b78cd 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 }
84aff7a4 36 re = new TEveGeoTopNode(gGeoManager, node);
9a5c8f9c 37 re->UseNodeTrans();
84aff7a4 38 gEve->AddGlobalElement(re, list);
197639c0 39
c74b78cd 40 node = mnode->GetVolume()->FindNode("V0LE_1");
41 if (!node) {
42 Error(eH, "V0L not found.");
43 return;
44 }
84aff7a4 45 re = new TEveGeoTopNode(gGeoManager, node);
9a5c8f9c 46 re->UseNodeTrans();
84aff7a4 47 gEve->AddGlobalElement(re, list);
197639c0 48
84aff7a4 49 gEve->Redraw3D();
197639c0 50}