]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/hmpid_clusters.C
SetSeed dummy implementations
[u/mrichter/AliRoot.git] / EVE / alice-macros / hmpid_clusters.C
index cd2f2d770f365f2be86f6a6d721c8855f64b39dd..9836d42bf8c59998830868b4f134d76f84999385 100644 (file)
@@ -6,22 +6,25 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
-#ifdef __CINT__
-
-class TEveElement;
-class TEvePointSet;
-
-#else
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TClonesArray.h>
+#include <TBranch.h>
+#include <TTree.h>
 #include <TEveManager.h>
+#include <TEveElement.h>
 #include <TEvePointSet.h>
-#include <EveBase/AliEveEventManager.h>
+#include <TTree.h>
+#include <TBranch.h>
 
-#include <AliRunLoader.h>
 #include <AliCluster3D.h>
-
-#include <TClonesArray.h>
-
+#include <AliRunLoader.h>
+#include <AliEveEventManager.h>
+#else
+class TEveElement;
+class TEvePointSet;
+class TTree;
+class TBranch;
 #endif
 
 TEvePointSet* hmpid_clusters(TEveElement* cont=0)
@@ -85,14 +88,16 @@ TEvePointSet* hmpid_clusters(TEveElement* cont=0)
   clusters->SetMarkerSize(0.2);
   clusters->SetMarkerColor(4);
 
-  char form[1000];
-  sprintf(form,"HMPID Clusters");
-  clusters->SetName(form);
+  clusters->SetName("HMPID Clusters");
+
+  clusters->SetTitle(Form("N=%d", clusters->Size()));
+
+  const TString viz_tag("REC Clusters HMPID");
+
+  clusters->ApplyVizTag(viz_tag, "Clusters");
 
-  char tip[1000];
-  sprintf(tip,"N=%d", clusters->Size());
-  clusters->SetTitle(tip);
   gEve->AddElement(clusters, cont);
+
   gEve->Redraw3D();
 
   return clusters;