]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/tof_hits.C
From Pawel Debski:
[u/mrichter/AliRoot.git] / EVE / alice-macros / tof_hits.C
index e8c417a24c78ba0c36add8b6fdc8e385cc6a7b15..c48cf5e66dda38ee0238b3b1f9004735b05fedec 100644 (file)
@@ -7,7 +7,6 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
-
 TEvePointSet*
 tof_hits(const char *varexp    = "fX:fY:fZ",
         const char *selection = "",
@@ -18,13 +17,7 @@ tof_hits(const char *varexp    = "fX:fY:fZ",
 
   TTree* ht = rl->GetTreeH("TOF", false);
   
-  //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  TEvePointSet* points = new TEvePointSet(Form("TOF Hits '%s'", selection));
-  char form[1000];
-  sprintf(form,"TOF Hits '%s'", selection);
-  TEvePointSet* points = new TEvePointSet(form);
+  TEvePointSet* points = new TEvePointSet(Form("SIM Hits TOF '%s'", selection));
 
   TEvePointSelector ps(ht, points, varexp, selection);
   ps.Select();
@@ -35,11 +28,9 @@ tof_hits(const char *varexp    = "fX:fY:fZ",
     return 0;
   }
 
-  //PH  points->SetTitle(Form("N=%d", points->Size()));
-  sprintf(form,"N=%d", points->Size());
-  points->SetTitle(form);
+  points->SetTitle(Form("N=%d", points->Size()));
   points->SetMarkerSize(.5);
-  points->SetMarkerColor((Color_t)2);
+  points->SetMarkerColor(2);
 
   gEve->AddElement(points, cont);
   gEve->Redraw3D();