]>
Commit | Line | Data |
---|---|---|
5618b9cf | 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 | #if !defined(__CINT__) || defined(__MAKECINT__) | |
11 | #include <TGeoManager.h> | |
12 | #include <TGeoNode.h> | |
13 | #include <TEveManager.h> | |
14 | #include <TEveGeoNode.h> | |
15 | ||
16 | #include <AliEveEventManager.h> | |
17 | #endif | |
18 | ||
19 | void geom_mft() | |
20 | ||
21 | { | |
22 | // AliEveEventManager::AssertGeometry(); | |
23 | ||
24 | gGeoManager = gEve->GetGeometry("geometry.root"); | |
25 | ||
26 | TEveElementList* list = new TEveElementList("MFT"); | |
27 | gEve->AddGlobalElement(list); | |
28 | ||
29 | TGeoNode *node1 = gGeoManager->GetTopVolume()->FindNode("MFT_0"); | |
30 | if (!node1) { | |
31 | Warning("geom_mft()", "Node MFT_0 not found !"); | |
32 | return; | |
33 | } | |
34 | ||
35 | TEveGeoTopNode* re1 = new TEveGeoTopNode(gGeoManager,node1); | |
36 | re1->UseNodeTrans(); | |
37 | gEve->AddGlobalElement(re1,list); | |
38 | ||
39 | gEve->Redraw3D(); | |
40 | ||
41 | Info("geom_mft.C", "Done"); | |
42 | } |