]> 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 423d5c1a228c4800e79cde58ba006f3aa6413c43..512139a82f1a0f7704815ab0f1af99b10cfe10a4 100644 (file)
@@ -1,8 +1,15 @@
 // $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()
 {
-  gGeoManager = gEve->GetGeometry("$REVESYS/alice-data/alice_fullgeo.root");
+  gGeoManager = gEve->GetDefaultGeometry();
 
   TEveElementList* list = new TEveElementList("HMPID");
   gEve->AddGlobalElement(list);
@@ -13,7 +20,7 @@ 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);
 
     TEveGeoTopNode* re = new TEveGeoTopNode(gGeoManager, node);