]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/its_hits.C
remove ntuples
[u/mrichter/AliRoot.git] / EVE / alice-macros / its_hits.C
index c6c74ebb838a63f3d9a02646d8ec314293bafab4..fc41f73fc444cb118dfece1b1b773f05e2096dc9 100644 (file)
@@ -4,7 +4,7 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
 
 TEvePointSet*
@@ -16,14 +16,8 @@ its_hits(const char *varexp    = "fX:fY:fZ",
   rl->LoadHits("ITS");
 
   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("ITS Hits '%s'", selection));
 
   TEvePointSelector ps(ht, points, varexp, selection);
   // ps.SetSubIdExp("fTrack:fStatus");
@@ -35,11 +29,10 @@ 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->SetName(Form("ITS Hits"));
+  points->SetTitle(Form("N=%d", points->Size()));
+
+  points->ApplyVizTag("SIM Hits ITS", "Hits");
 
   gEve->AddElement(points, cont);
   gEve->Redraw3D();