]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/MUON_geom.C
adding new sample component for RAW data analysis
[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 /// \ingroup evemacros
11 /// \file MUON_geom.C
12 ///
13 /// \author B. Vulpescu, LPC
14
15 void MUON_geom()
16 {
17   gGeoManager = gEve->GetGeometry("geometry.root");
18
19   TEveElementList* list = new TEveElementList("DiMUON");
20   gEve->AddGlobalElement(list);
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
26   TEveGeoTopNode* re1 = new TEveGeoTopNode(gGeoManager,node1);
27   re1->UseNodeTrans();
28   gEve->AddGlobalElement(re1,list);
29
30   TEveGeoTopNode* re2 = new TEveGeoTopNode(gGeoManager,node2);
31   re2->UseNodeTrans();
32   gEve->AddGlobalElement(re2,list);
33
34   TEveGeoTopNode* re3 = new TEveGeoTopNode(gGeoManager,node3);
35   re3->UseNodeTrans();
36   gEve->AddGlobalElement(re3,list);
37
38   gEve->Redraw3D();
39
40   printf("MUON_geom.C done\n");
41
42 }