]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/geom_acorde.C
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_acorde.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 #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 <AliEveEventManager.h>
18 #endif
19
20 void geom_acorde()
21 {
22   AliEveEventManager::AssertGeometry();
23
24   TGeoNode* node = gGeoManager->GetTopVolume()->FindNode("ACORDE_1");
25   if (!node) {
26     Warning("geom_acorde()", "Node ACORDE_1 not found.");
27     return;
28   }
29
30   TEveElementList* list = new TEveElementList("ACORDE");
31   gEve->AddGlobalElement(list);
32
33   TEveGeoTopNode* re = new TEveGeoTopNode(gGeoManager, node);
34   re->UseNodeTrans();
35   gEve->AddGlobalElement(re, list);
36
37   gEve->Redraw3D();
38 }