Geometry for MFT (Brigitte)
[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
25b4bdb2 10/// \ingroup evemacros
11/// \file MUON_geom.C
12///
13/// \author B. Vulpescu, LPC
14
ba978640 15#if !defined(__CINT__) || defined(__MAKECINT__)
16#include <TGeoManager.h>
17#include <TGeoNode.h>
18#include <TEveManager.h>
19#include <TEveElement.h>
20#include <TEveGeoNode.h>
21#endif
22
382f0106 23void MUON_geom()
24{
58e15fc1 25 gGeoManager = gEve->GetGeometry("geometry.root");
c5f77b7a 26
27 TEveElementList* list = new TEveElementList("DiMUON");
28 gEve->AddGlobalElement(list);
382f0106 29
30 TGeoNode *node1 = gGeoManager->GetTopVolume()->FindNode("DDIP_1");
31 TGeoNode *node2 = gGeoManager->GetTopVolume()->FindNode("YOUT1_1");
32 TGeoNode *node3 = gGeoManager->GetTopVolume()->FindNode("YOUT2_1");
33
84aff7a4 34 TEveGeoTopNode* re1 = new TEveGeoTopNode(gGeoManager,node1);
9a5c8f9c 35 re1->UseNodeTrans();
c5f77b7a 36 gEve->AddGlobalElement(re1,list);
382f0106 37
84aff7a4 38 TEveGeoTopNode* re2 = new TEveGeoTopNode(gGeoManager,node2);
9a5c8f9c 39 re2->UseNodeTrans();
c5f77b7a 40 gEve->AddGlobalElement(re2,list);
382f0106 41
84aff7a4 42 TEveGeoTopNode* re3 = new TEveGeoTopNode(gGeoManager,node3);
9a5c8f9c 43 re3->UseNodeTrans();
c5f77b7a 44 gEve->AddGlobalElement(re3,list);
45
46 gEve->Redraw3D();
47
ba978640 48 Info("MUON_geom.C", "Done");
382f0106 49
50}