Solve bug #89021 - macros do not neet to do gEve->GetDefaultGeometry() but AliEveEven...
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_zdc.C
... / ...
CommitLineData
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
20void geom_zdc()
21{
22 AliEveEventManager::AssertGeometry();
23
24 TEveElementList* list = new TEveElementList("ZDC");
25 gEve->AddGlobalElement(list);
26
27 TGeoNode* node;
28 TEveGeoTopNode* re;
29
30 node = gGeoManager->GetTopVolume()->FindNode("ZDCA_1");
31 re = new TEveGeoTopNode(gGeoManager, node);
32 re->UseNodeTrans();
33 gEve->AddGlobalElement(re, list);
34
35 node = gGeoManager->GetTopVolume()->FindNode("ZDCC_1");
36 re = new TEveGeoTopNode(gGeoManager, node);
37 re->UseNodeTrans();
38 gEve->AddGlobalElement(re, list);
39
40 gEve->Redraw3D();
41}