2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
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 **************************************************************************/
10 /// \ingroup evemacros
13 /// \author B. Vulpescu, LPC
15 #if !defined(__CINT__) || defined(__MAKECINT__)
16 #include <TGeoManager.h>
18 #include <TEveManager.h>
19 #include <TEveElement.h>
20 #include <TEveGeoNode.h>
25 gGeoManager = gEve->GetGeometry("geometry.root");
27 TEveElementList* list = new TEveElementList("DiMUON");
28 gEve->AddGlobalElement(list);
30 TGeoNode *node1 = gGeoManager->GetTopVolume()->FindNode("DDIP_1");
31 TGeoNode *node2 = gGeoManager->GetTopVolume()->FindNode("YOUT1_1");
32 TGeoNode *node3 = gGeoManager->GetTopVolume()->FindNode("YOUT2_1");
34 TEveGeoTopNode* re1 = new TEveGeoTopNode(gGeoManager,node1);
36 gEve->AddGlobalElement(re1,list);
38 TEveGeoTopNode* re2 = new TEveGeoTopNode(gGeoManager,node2);
40 gEve->AddGlobalElement(re2,list);
42 TEveGeoTopNode* re3 = new TEveGeoTopNode(gGeoManager,node3);
44 gEve->AddGlobalElement(re3,list);
48 Info("MUON_geom.C", "Done");