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 void tpc_hits_eta_split(const char *varexp =
11 "TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ"
13 const char *selection = "TPC2.fArray.fR>80")
15 // Extracts 'major' TPC hits (not the compressed ones).
16 // This gives ~2.5% of all hits.
18 AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
21 TTree* ht = rl->GetTreeH("TPC", false);
23 TEvePointSetArray* l = new TEvePointSetArray("TPC hits - Eta Slices", "");
24 l->SetSourceCS(TEvePointSelectorConsumer::kTVT_RPhiZ);
26 l->SetMarkerStyle(20); // full circle
30 l->InitBins("Eta", 20, -2, 2);
32 TEvePointSelector ps(ht, l, varexp, selection);