]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/trd_clusters.C
From Pawel Debski.
[u/mrichter/AliRoot.git] / EVE / alice-macros / trd_clusters.C
index f5a2d773bc283693068efd0b033a031d48d6085d..dda663ad2caa00ccec2f7789c62696898d5a99a5 100644 (file)
@@ -1,4 +1,4 @@
-// $Id: tpc_clusters.C 23497 2008-01-23 20:43:14Z mtadel $
+// $Id$
 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
 
 /**************************************************************************
@@ -65,18 +65,13 @@ TEvePointSet* trd_clusters(TEveElement *cont = 0)
     return 0;
   }
 
-  char form[1000];
-  sprintf(form,"TRD Clusters");
-  clusters->SetName(form);
+  clusters->SetName("TRD Clusters");
 
-  char tip[1000];
-  sprintf(tip,"N=%d", clusters->Size());
-  clusters->SetTitle(tip);
+  clusters->SetTitle(Form("N=%d", clusters->Size()));
 
-  const TString viz_tag("TRD Clusters");
-  // when going to new root call:
-  // clusters->ApplyVizTag(viz_tag, "Clusters");
-  clusters->ApplyVizTag(viz_tag);
+  const TString viz_tag("REC Clusters TRD");
+
+  clusters->ApplyVizTag(viz_tag, "Clusters");
 
   gEve->AddElement(clusters, cont);