]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/geom_simple.C
Coverity
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_simple.C
index 50142e15446a74fc31a58927e8fffc5015182428..9b2fb053e70c2424fb36ee0837053d9bd2fea40f 100644 (file)
@@ -1,13 +1,17 @@
 // $Id$
+// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
+
+/**************************************************************************
+ * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
+ * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
+ * full copyright notice.                                                 *
+ **************************************************************************/
 
 void geom_simple()
 {
-  using namespace std;
-
-  gGeoManager = gReve->GetGeometry("$REVESYS/alice-data/simple_geo.root");
+  gGeoManager = gEve->GetGeometry("$ALICE_ROOT/EVE/alice-data/simple_geo.root");
 
-  Reve::GeoTopNodeRnrEl* topn_re = new Reve::GeoTopNodeRnrEl
-    (gGeoManager, gGeoManager->GetTopNode());
-  gReve->AddGlobalRenderElement(topn_re);
-  gReve->DrawRenderElement(topn_re);
+  TEveGeoTopNode* topn_re = new TEveGeoTopNode(gGeoManager, gGeoManager->GetTopNode());
+  gEve->AddGlobalElement(topn_re);
+  gEve->Redraw3D();
 }