]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/tpc_hits_eta_split.C
doxy: code cleanup: comments and clarifications
[u/mrichter/AliRoot.git] / EVE / alice-macros / tpc_hits_eta_split.C
index 850cfa5676071b0b428afce2a2979c2c81cebe51..c871ae87b50966cb6d4d3d47038e6ca0cf8414c9 100644 (file)
@@ -1,4 +1,21 @@
 // $Id$
+// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
+
+/**************************************************************************
+ * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
+ * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
+ * full copyright notice.                                                 *
+ **************************************************************************/
+
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <TTree.h>
+#include <TEveManager.h>
+#include <TEvePointSet.h>
+#include <TEveTreeTools.h>
+
+#include <AliRunLoader.h>
+#include <AliEveEventManager.h>
+#endif
 
 void tpc_hits_eta_split(const char *varexp    =
                        "TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ"
@@ -8,17 +25,17 @@ void tpc_hits_eta_split(const char *varexp    =
   // Extracts 'major' TPC hits (not the compressed ones).
   // This gives ~2.5% of all hits.
 
-  AliRunLoader* rl =  Alieve::Event::AssertRunLoader();
+  AliRunLoader* rl =  AliEveEventManager::AssertRunLoader();
   rl->LoadHits("TPC");
 
   TTree* ht = rl->GetTreeH("TPC", false);
 
   TEvePointSetArray* l = new TEvePointSetArray("TPC hits - Eta Slices", "");
   l->SetSourceCS(TEvePointSelectorConsumer::kTVT_RPhiZ);
-  l->SetMarkerColor((Color_t)3);
+  l->SetMarkerColor(3);
   l->SetMarkerStyle(20); // full circle
   l->SetMarkerSize(.5);
-  
+
   gEve->AddElement(l);
   l->InitBins("Eta", 20, -2, 2);