]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/its_hits.C
Reducing verbosity
[u/mrichter/AliRoot.git] / EVE / alice-macros / its_hits.C
index 321a5c89b007bfa5c7b24eed9f942e2f55e0a338..f643276e104865ec3c90351e8abfeb32a18d0cc9 100644 (file)
@@ -17,13 +17,7 @@ its_hits(const char *varexp    = "fX:fY:fZ",
 
   TTree* ht = rl->GetTreeH("ITS", 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("ITS Hits '%s'", selection));
-  char form[1000];
-  sprintf(form,"ITS Hits '%s'", selection);
-  TEvePointSet* points = new TEvePointSet(form);
+  TEvePointSet* points = new TEvePointSet(Form("SIM Hits ITS '%s'", selection));
 
   TEvePointSelector ps(ht, points, varexp, selection);
   // ps.SetSubIdExp("fTrack:fStatus");
@@ -35,11 +29,11 @@ its_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->SetMarkerSize(.5);
-  points->SetMarkerColor((Color_t)2);
+  points->SetTitle(Form("N=%d", points->Size()));
+
+  points->SetName("ITS Hits"));
+  const TString viz_tag("SIM Hits ITS");
+  points->ApplyVizTag(viz_tag, "Hits");
 
   gEve->AddElement(points, cont);
   gEve->Redraw3D();