]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/pmd_hits.C
Adding explicit linking of GL GLU
[u/mrichter/AliRoot.git] / EVE / alice-macros / pmd_hits.C
index d4062e32d3544e47ab6ae76a74b7c852df2b9bff..75cbdf03d565f72cc0d598abd74644353c3b2e14 100644 (file)
@@ -16,20 +16,16 @@ pmd_hits(const char *varexp    = "fX:fY:fZ",
 
   TTree* ht = rl->GetTreeH("PMD", 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("PMD Hits '%s'", selection));
-  char form[1000];
-  sprintf(form,"PMD Hits '%s'", selection);
-  TEvePointSet* points = new TEvePointSet(form);
+  TEvePointSet* points = new TEvePointSet(Form("PMD Hits '%s'", selection));
 
   TEvePointSelector ps(ht, points, varexp, selection);
   ps.Select();
 
-  //PH  points->SetTitle(Form("N=%d", points->Size()));
-  sprintf(form,"N=%d", points->Size());
-  points->SetTitle(form);
+  points->SetName(Form("PMD Hits"));
+  const TString viz_tag("SIM Hits PMD");
+  points->ApplyVizTag(viz_tag, "Hits");
+
+  points->SetTitle(Form("N=%d", points->Size()));
   points->SetMarkerSize(.5);
   points->SetMarkerColor(2);