]> 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 fbf3076d01fc617a19b460f275eae56493574f1e..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
 
 /**************************************************************************
@@ -57,32 +57,21 @@ TEvePointSet* trd_clusters(TEveElement *cont = 0)
     TRDcluster->Clear();
   }
 
+  rl->UnloadRecPoints("TRD");
+
   if(clusters->Size() == 0 && gEve->GetKeepEmptyCont() == kFALSE) {
     Warning("trd_clusters.C", "No TRD clusters");
     delete clusters;
     return 0;
   }
 
-  char form[1000];
-  sprintf(form,"TRD Clusters");
-  clusters->SetName(form);
-
-  char tip[1000];
-  sprintf(tip,"N=%d", clusters->Size());
-  clusters->SetTitle(tip);
-
-  const TString viz_tag("TRD Clusters");
-  if (gEve->FindVizDBEntry(viz_tag) == 0)
-  {
-    TEvePointSet* m = new TEvePointSet();
-    m->SetMarkerColor(4);
-    m->SetMarkerSize(0.2);
-    m->SetMarkerStyle(2);
-    gEve->InsertVizDBEntry(viz_tag, m);
-  }
-  // The above can be removed when going to new root - then call:
-  // clusters->ApplyVizTag(viz_tag, "Clusters");
-  clusters->ApplyVizTag(viz_tag);
+  clusters->SetName("TRD Clusters");
+
+  clusters->SetTitle(Form("N=%d", clusters->Size()));
+
+  const TString viz_tag("REC Clusters TRD");
+
+  clusters->ApplyVizTag(viz_tag, "Clusters");
 
   gEve->AddElement(clusters, cont);