]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/geom_phos.C
Corrected code to visualize the ITS raw data. Subject to further changes
[u/mrichter/AliRoot.git] / EVE / alice-macros / geom_phos.C
index f9ddfd019c7b1c342263d650e64bac7a2966ce3c..ff80a9039bdb327b8c6df38c373b25a97874ca97 100644 (file)
@@ -6,6 +6,9 @@ void geom_phos()
 
   gGeoManager = gReve->GetGeometry("$REVESYS/alice-data/alice_fullgeo.root");
 
+  Reve::RenderElementList* list = new Reve::RenderElementList("PHOS");
+  gReve->AddGlobalRenderElement(list);
+
   for(Int_t i=1; i<=5; ++i) {
     //PH The line below is replaced waiting for a fix in Root
     //PH which permits to use variable siza arguments in CINT
@@ -17,7 +20,7 @@ void geom_phos()
 
     Reve::GeoTopNodeRnrEl* re = new Reve::GeoTopNodeRnrEl(gGeoManager, node);
     re->UseNodeTrans();
-    gReve->AddGlobalRenderElement(re);
+    gReve->AddGlobalRenderElement(re, list);
   }
 
   gReve->Redraw3D();