]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/pmd_hits.C
doxy: code cleanup: comments and clarifications
[u/mrichter/AliRoot.git] / EVE / alice-macros / pmd_hits.C
index b08113b3c9df1fb073793bf7cf2e3fafea91d45d..558123dc1f1bbea3c6f8fac732724252f33289d6 100644 (file)
@@ -7,6 +7,18 @@
  * full copyright notice.                                                 *
  **************************************************************************/
 
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TTree.h>
+#include <TStyle.h>
+#include <TString.h>
+#include <TEveManager.h>
+#include <TEvePointSet.h>
+#include <TEveTrans.h>
+
+#include <AliRunLoader.h>
+#include <AliEveEventManager.h>
+#endif
+
 TEvePointSet*
 pmd_hits(const char *varexp    = "fX:fY:fZ",
         const char *selection = "")
@@ -16,11 +28,15 @@ pmd_hits(const char *varexp    = "fX:fY:fZ",
 
   TTree* ht = rl->GetTreeH("PMD", false);
 
-  TEvePointSet* points = new TEvePointSet(Form("SIM Hits PMD '%s'", selection));
+  TEvePointSet* points = new TEvePointSet(Form("PMD Hits '%s'", selection));
 
   TEvePointSelector ps(ht, points, varexp, selection);
   ps.Select();
 
+  points->SetName(Form("PMD Hits"));
+  const TString viz_tag("SIM Hits PMD");
+  points->ApplyVizTag(viz_tag, "Hits");
+
   points->SetTitle(Form("N=%d", points->Size()));
   points->SetMarkerSize(.5);
   points->SetMarkerColor(2);