]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/MUON_geom.C
Put all classes in Alieve/ sub-module out of the Alieve namespace and
[u/mrichter/AliRoot.git] / EVE / alice-macros / MUON_geom.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 MUON_geom()
11 {
12   TString dataPath = TString(gEvent->GetTitle());
13   dataPath.Append("/geometry.root");
14   gGeoManager = gEve->GetGeometry(dataPath.Data());
15
16   TGeoNode *node1 = gGeoManager->GetTopVolume()->FindNode("DDIP_1");
17   TGeoNode *node2 = gGeoManager->GetTopVolume()->FindNode("YOUT1_1");
18   TGeoNode *node3 = gGeoManager->GetTopVolume()->FindNode("YOUT2_1");
19
20   TEveGeoTopNode* re1 = new TEveGeoTopNode(gGeoManager,node1);
21   re1->UseNodeTrans();
22   gEve->AddGlobalElement(re1);
23
24   TEveGeoTopNode* re2 = new TEveGeoTopNode(gGeoManager,node2);
25   re2->UseNodeTrans();
26   gEve->AddGlobalElement(re2);
27
28   TEveGeoTopNode* re3 = new TEveGeoTopNode(gGeoManager,node3);
29   re3->UseNodeTrans();
30   gEve->AddGlobalElement(re3);
31
32   gEve->Redraw3D(kTRUE);
33 }