AliEveEventManager::AssertGeometry() - consolidate with changes in
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_acorde.C
CommitLineData
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
10void geom_acorde()
11{
647814a2 12 // AliEveEventManager::AssertGeometry();
13 gEve->GetGeometry("geometry.root");
41e87e2b 14
c2c4b7a2 15 TGeoNode* node = gGeoManager->GetTopVolume()->FindNode("ACORDE_1");
16 if (!node) {
647814a2 17 Warning("geom_acorde()", "Node ACORDE_1 not found.");
18 return;
c2c4b7a2 19 }
20
84aff7a4 21 TEveElementList* list = new TEveElementList("ACORDE");
22 gEve->AddGlobalElement(list);
41e87e2b 23
c2c4b7a2 24 TEveGeoTopNode* re = new TEveGeoTopNode(gGeoManager, node);
25 re->UseNodeTrans();
26 gEve->AddGlobalElement(re, list);
84aff7a4 27
28 gEve->Redraw3D();
41e87e2b 29}