]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/geom_hmpid.C
Coverity
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_hmpid.C
index a59e9a7615cf65104dc244b419ef46437c679eb0..512139a82f1a0f7704815ab0f1af99b10cfe10a4 100644 (file)
@@ -1,13 +1,18 @@
 // $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_hmpid()
 {
-  using namespace std;
-
-  gGeoManager = gReve->GetGeometry("$REVESYS/alice-data/alice_fullgeo.root");
+  gGeoManager = gEve->GetDefaultGeometry();
 
-  Reve::RenderElementList* list = new Reve::RenderElementList("HMPID");
-  gReve->AddGlobalRenderElement(list);
+  TEveElementList* list = new TEveElementList("HMPID");
+  gEve->AddGlobalElement(list);
 
   for(Int_t i=0; i<7; ++i) {
     //PH The line below is replaced waiting for a fix in Root
@@ -15,13 +20,13 @@ void geom_hmpid()
     //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
     //PH TGeoNode* node = gGeoManager->GetTopVolume()->FindNode(Form("HMPID_%d", i));
     char form[1000];
-    sprintf(form, "HMPID_%d", i);
+    sprintf(form, "Hmp%d_0", i);
     TGeoNode* node = gGeoManager->GetTopVolume()->FindNode(form);
 
-    Reve::GeoTopNodeRnrEl* re = new Reve::GeoTopNodeRnrEl(gGeoManager, node);
+    TEveGeoTopNode* re = new TEveGeoTopNode(gGeoManager, node);
     re->UseNodeTrans();
-    gReve->AddGlobalRenderElement(re, list);
+    gEve->AddGlobalElement(re, list);
   }
 
-  gReve->Redraw3D();
+  gEve->Redraw3D();
 }