]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/geom_ad.C
Overlaps corrected, new shape of sectors
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_ad.C
1 // $Id: geom_acorde.C 55329 2012-03-23 19:29:00Z quark $
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_ad()
21 {
22   AliEveEventManager::AssertGeometry();
23
24   TGeoNode* node = gGeoManager->GetTopVolume()->FindNode("AD_1");
25   if (!node) {
26     Warning("geom_ad()", "Node AD_1 not found.");
27     return;
28   }
29
30   TEveElementList* list = new TEveElementList("AD");
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 }