Geometry for MFT (Brigitte)
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_zdc.C
CommitLineData
c019f538 1// $Id$
316e5aa3 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
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>
290113e6 16
17#include <AliEveEventManager.h>
ba978640 18#endif
19
316e5aa3 20void geom_zdc()
21{
290113e6 22 AliEveEventManager::AssertGeometry();
316e5aa3 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}