]>
Commit | Line | Data |
---|---|---|
41e87e2b | 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 | **************************************************************************/ |
41e87e2b | 9 | |
ba978640 | 10 | #if !defined(__CINT__) || defined(__MAKECINT__) |
11 | #include <TGeoManager.h> | |
12 | #include <TGeoNode.h> | |
13 | #include <TEveManager.h> | |
14 | #include <TEveElement.h> | |
15 | #include <TEveGeoNode.h> | |
16 | ||
17 | #include <EVE/EveBase/AliEveEventManager.h> | |
18 | #endif | |
19 | ||
41e87e2b | 20 | void geom_acorde() |
21 | { | |
1ec04a82 | 22 | AliEveEventManager::AssertGeometry(); |
23 | //gEve->GetDefaultGeometry(); | |
41e87e2b | 24 | |
c2c4b7a2 | 25 | TGeoNode* node = gGeoManager->GetTopVolume()->FindNode("ACORDE_1"); |
26 | if (!node) { | |
647814a2 | 27 | Warning("geom_acorde()", "Node ACORDE_1 not found."); |
28 | return; | |
c2c4b7a2 | 29 | } |
30 | ||
84aff7a4 | 31 | TEveElementList* list = new TEveElementList("ACORDE"); |
32 | gEve->AddGlobalElement(list); | |
41e87e2b | 33 | |
c2c4b7a2 | 34 | TEveGeoTopNode* re = new TEveGeoTopNode(gGeoManager, node); |
35 | re->UseNodeTrans(); | |
36 | gEve->AddGlobalElement(re, list); | |
84aff7a4 | 37 | |
38 | gEve->Redraw3D(); | |
41e87e2b | 39 | } |