]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/vzero_hits.C
Separate import of standard macros into a special function so that
[u/mrichter/AliRoot.git] / EVE / alice-macros / vzero_hits.C
index ea69e38d14d5cb7a55974698e5671171e36870f3..6704df335f94a81069076f5fcdc618096eb65119 100644 (file)
@@ -2,19 +2,27 @@
 
 Reve::PointSet*
 vzero_hits(const char *varexp    = "fX:fY:fZ",
-        const char *selection = "")
+          const char *selection = "")
 {
   AliRunLoader* rl =  Alieve::Event::AssertRunLoader();
   rl->LoadHits("VZERO");
 
   TTree* ht = rl->GetTreeH("VZERO", false);
   
-  Reve::PointSet* points = new Reve::PointSet(Form("VZERO Hits '%s'", selection));
+  //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("VZERO Hits '%s'", selection));
+  char form[1000];
+  sprintf(form,"VZERO Hits '%s'", selection);
+  Reve::PointSet* points = new Reve::PointSet(form);
 
   TPointSelector ps(ht, points, varexp, selection);
   ps.Select();
 
-  points->SetTitle(Form("N=%d", points->Size()));
+  //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);