]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/trd_hits.C
Remove EVE/Reve/ sub-module.
[u/mrichter/AliRoot.git] / EVE / alice-macros / trd_hits.C
index bb45b1e26f9284ecdf21636756dc3df0785683db..95b3d99e4988a3f13ce7c8c01b92783c78796fe5 100644 (file)
@@ -1,9 +1,9 @@
 // $Id$
 
-Reve::PointSet*
+TEvePointSet*
 trd_hits(const char *varexp    = "fX:fY:fZ",
         const char *selection = "",
-        Reve::RenderElement* cont = 0)
+        TEveElement* cont = 0)
 {
   AliRunLoader* rl =  Alieve::Event::AssertRunLoader();
   rl->LoadHits("TRD");
@@ -13,15 +13,15 @@ trd_hits(const char *varexp    = "fX:fY:fZ",
   //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  Reve::PointSet* points = new Reve::PointSet(Form("TRD Hits '%s'", selection));
+  //PH  TEvePointSet* points = new TEvePointSet(Form("TRD Hits '%s'", selection));
   char form[1000];
   sprintf(form,"TRD Hits '%s'", selection);
-  Reve::PointSet* points = new Reve::PointSet(form);
+  TEvePointSet* points = new TEvePointSet(form);
 
-  TPointSelector ps(ht, points, varexp, selection);
+  TEvePointSelector ps(ht, points, varexp, selection);
   ps.Select();
 
-  if (points->Size() == 0 && gReve->GetKeepEmptyCont() == kFALSE) {
+  if (points->Size() == 0 && gEve->GetKeepEmptyCont() == kFALSE) {
     Warning("trd_hits", Form("No hits match '%s'", selection));
     delete points;
     return 0;
@@ -33,8 +33,8 @@ trd_hits(const char *varexp    = "fX:fY:fZ",
   points->SetMarkerSize(.5);
   points->SetMarkerColor((Color_t)7);
 
-  gReve->AddRenderElement(points, cont);
-  gReve->Redraw3D();
+  gEve->AddElement(points, cont);
+  gEve->Redraw3D();
 
   return points;
 }