2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
4 /**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7 * full copyright notice. *
8 **************************************************************************/
10 #if !defined(__CINT__) || defined(__MAKECINT__)
12 #include <TEveManager.h>
13 #include <TEvePointSet.h>
14 #include <TEveTreeTools.h>
16 #include <AliRunLoader.h>
17 #include <AliEveEventManager.h>
20 void tpc_hits_eta_split(const char *varexp =
21 "TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ"
23 const char *selection = "TPC2.fArray.fR>80")
25 // Extracts 'major' TPC hits (not the compressed ones).
26 // This gives ~2.5% of all hits.
28 AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
31 TTree* ht = rl->GetTreeH("TPC", false);
33 TEvePointSetArray* l = new TEvePointSetArray("TPC hits - Eta Slices", "");
34 l->SetSourceCS(TEvePointSelectorConsumer::kTVT_RPhiZ);
36 l->SetMarkerStyle(20); // full circle
40 l->InitBins("Eta", 20, -2, 2);
42 TEvePointSelector ps(ht, l, varexp, selection);