]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/t0_hits.C
macros for ITS upgrade visualization
[u/mrichter/AliRoot.git] / EVE / alice-macros / t0_hits.C
index 93d357c11b5d0f67840f45a3fa355322e6834757..38b01d47afad4c43b34f03a1c85beaa80817c718 100644 (file)
@@ -7,6 +7,18 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TClonesArray.h>
+#include <TTree.h>
+#include <TEvePointSet.h>
+#include <TEveElement.h>
+#include <TEveManager.h>
+#include <TEveTreeTools.h>
+
+#include <AliRunLoader.h>
+#include <AliEveEventManager.h>
+#endif
+
 TEvePointSet*
 t0_hits(const char *varexp    = "T0.fX:T0.fY:T0.fZ",
        const char *selection = "")
@@ -39,7 +51,11 @@ t0_hits(const char *varexp    = "T0.fX:T0.fY:T0.fZ",
 
   points->SetTitle(Form("N=%d", points->Size()));
   points->SetMarkerSize(.5);
-  points->SetMarkerColor((Color_t)3);
+  points->SetMarkerColor(3);
+
+  points->SetName(Form("T0 Hits"));
+  const TString viz_tag("SIM Hits T0");
+  points->ApplyVizTag(viz_tag, "Hits");
 
   gEve->AddElement(points);
   gEve->Redraw3D();