]>
Commit | Line | Data |
---|---|---|
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 | |
25b4bdb2 | 10 | /// \ingroup evemacros |
11 | /// \file MUON_geom.C | |
12 | /// | |
13 | /// \author B. Vulpescu, LPC | |
14 | ||
382f0106 | 15 | void MUON_geom() |
16 | { | |
58e15fc1 | 17 | gGeoManager = gEve->GetGeometry("geometry.root"); |
c5f77b7a | 18 | |
19 | TEveElementList* list = new TEveElementList("DiMUON"); | |
20 | gEve->AddGlobalElement(list); | |
382f0106 | 21 | |
22 | TGeoNode *node1 = gGeoManager->GetTopVolume()->FindNode("DDIP_1"); | |
23 | TGeoNode *node2 = gGeoManager->GetTopVolume()->FindNode("YOUT1_1"); | |
24 | TGeoNode *node3 = gGeoManager->GetTopVolume()->FindNode("YOUT2_1"); | |
25 | ||
84aff7a4 | 26 | TEveGeoTopNode* re1 = new TEveGeoTopNode(gGeoManager,node1); |
9a5c8f9c | 27 | re1->UseNodeTrans(); |
c5f77b7a | 28 | gEve->AddGlobalElement(re1,list); |
382f0106 | 29 | |
84aff7a4 | 30 | TEveGeoTopNode* re2 = new TEveGeoTopNode(gGeoManager,node2); |
9a5c8f9c | 31 | re2->UseNodeTrans(); |
c5f77b7a | 32 | gEve->AddGlobalElement(re2,list); |
382f0106 | 33 | |
84aff7a4 | 34 | TEveGeoTopNode* re3 = new TEveGeoTopNode(gGeoManager,node3); |
9a5c8f9c | 35 | re3->UseNodeTrans(); |
c5f77b7a | 36 | gEve->AddGlobalElement(re3,list); |
37 | ||
38 | gEve->Redraw3D(); | |
39 | ||
40 | printf("MUON_geom.C done\n"); | |
382f0106 | 41 | |
42 | } |