]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/alice-macros/MUON_geom.C
just make it work
[u/mrichter/AliRoot.git] / EVE / alice-macros / MUON_geom.C
CommitLineData
382f0106 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 **************************************************************************/
382f0106 9
10void MUON_geom()
11{
58e15fc1 12 gGeoManager = gEve->GetGeometry("geometry.root");
c5f77b7a 13
14 TEveElementList* list = new TEveElementList("DiMUON");
15 gEve->AddGlobalElement(list);
382f0106 16
17 TGeoNode *node1 = gGeoManager->GetTopVolume()->FindNode("DDIP_1");
18 TGeoNode *node2 = gGeoManager->GetTopVolume()->FindNode("YOUT1_1");
19 TGeoNode *node3 = gGeoManager->GetTopVolume()->FindNode("YOUT2_1");
20
84aff7a4 21 TEveGeoTopNode* re1 = new TEveGeoTopNode(gGeoManager,node1);
9a5c8f9c 22 re1->UseNodeTrans();
c5f77b7a 23 gEve->AddGlobalElement(re1,list);
382f0106 24
84aff7a4 25 TEveGeoTopNode* re2 = new TEveGeoTopNode(gGeoManager,node2);
9a5c8f9c 26 re2->UseNodeTrans();
c5f77b7a 27 gEve->AddGlobalElement(re2,list);
382f0106 28
84aff7a4 29 TEveGeoTopNode* re3 = new TEveGeoTopNode(gGeoManager,node3);
9a5c8f9c 30 re3->UseNodeTrans();
c5f77b7a 31 gEve->AddGlobalElement(re3,list);
32
33 gEve->Redraw3D();
34
35 printf("MUON_geom.C done\n");
382f0106 36
37}