]>
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 | ||
6c49a8e1 | 17 | #include <AliEveEventManager.h> |
ba978640 | 18 | #endif |
19 | ||
41e87e2b | 20 | void geom_acorde() |
21 | { | |
1ec04a82 | 22 | AliEveEventManager::AssertGeometry(); |
41e87e2b | 23 | |
c2c4b7a2 | 24 | TGeoNode* node = gGeoManager->GetTopVolume()->FindNode("ACORDE_1"); |
25 | if (!node) { | |
647814a2 | 26 | Warning("geom_acorde()", "Node ACORDE_1 not found."); |
27 | return; | |
c2c4b7a2 | 28 | } |
29 | ||
84aff7a4 | 30 | TEveElementList* list = new TEveElementList("ACORDE"); |
31 | gEve->AddGlobalElement(list); | |
41e87e2b | 32 | |
c2c4b7a2 | 33 | TEveGeoTopNode* re = new TEveGeoTopNode(gGeoManager, node); |
34 | re->UseNodeTrans(); | |
35 | gEve->AddGlobalElement(re, list); | |
84aff7a4 | 36 | |
37 | gEve->Redraw3D(); | |
41e87e2b | 38 | } |