]>
Commit | Line | Data |
---|---|---|
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 | |
10 | void geom_vzero() | |
11 | { | |
a15e6d7d | 12 | static const TEveException kEH("geom_vzero() "); |
c74b78cd | 13 | |
81515106 | 14 | gGeoManager = gEve->GetDefaultGeometry(); |
197639c0 | 15 | |
84aff7a4 | 16 | TEveElementList* list = new TEveElementList("VZero"); |
17 | gEve->AddGlobalElement(list); | |
197639c0 | 18 | |
c74b78cd | 19 | TGeoNode* node = 0; |
84aff7a4 | 20 | TEveGeoTopNode* re; |
197639c0 | 21 | |
c74b78cd | 22 | TGeoNode* mnode = gGeoManager->GetTopVolume()->FindNode("VZERO_1"); |
23 | if (!mnode) { | |
a15e6d7d | 24 | Error(kEH, "mother node not found."); |
c74b78cd | 25 | return; |
26 | } | |
27 | ||
28 | node = mnode->GetVolume()->FindNode("V0RI_1"); | |
29 | printf("opofoih %p\n", node); | |
30 | if (!node) { | |
a15e6d7d | 31 | Error(kEH, "V0R not found."); |
c74b78cd | 32 | return; |
33 | } | |
84aff7a4 | 34 | re = new TEveGeoTopNode(gGeoManager, node); |
9a5c8f9c | 35 | re->UseNodeTrans(); |
84aff7a4 | 36 | gEve->AddGlobalElement(re, list); |
197639c0 | 37 | |
c74b78cd | 38 | node = mnode->GetVolume()->FindNode("V0LE_1"); |
39 | if (!node) { | |
a15e6d7d | 40 | Error(kEH, "V0L not found."); |
c74b78cd | 41 | return; |
42 | } | |
84aff7a4 | 43 | re = new TEveGeoTopNode(gGeoManager, node); |
9a5c8f9c | 44 | re->UseNodeTrans(); |
84aff7a4 | 45 | gEve->AddGlobalElement(re, list); |
197639c0 | 46 | |
84aff7a4 | 47 | gEve->Redraw3D(); |
197639c0 | 48 | } |