]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/geom_rich.C
RICH becomes HMPID
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_rich.C
index 61e5dfe18620edbe62a3bceea3963d6cc85ff5be..6e91f0dd5841261bb954c9ef553b7edce3438ad4 100644 (file)
@@ -6,11 +6,17 @@ void geom_rich()
 
   gGeoManager = gReve->GetGeometry("$REVESYS/alice-data/alice_fullgeo.root");
 
-  Reve::RenderElementList* list = new Reve::RenderElementList("RICH");
+  Reve::RenderElementList* list = new Reve::RenderElementList("HMPID");
   gReve->AddGlobalRenderElement(list);
 
   for(Int_t i=1; i<=7; ++i) {
-    TGeoNode* node = gGeoManager->GetTopVolume()->FindNode(Form("RICH_%d", i));
+    //PH The line below is replaced waiting for a fix in Root
+    //PH which permits to use variable siza arguments in CINT
+    //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);
+    TGeoNode* node = gGeoManager->GetTopVolume()->FindNode(form);
 
     Reve::GeoTopNodeRnrEl* re = new Reve::GeoTopNodeRnrEl(gGeoManager, node);
     re->SetUseNodeTrans(kTRUE);