]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/alice-macros/pmd_hits.C
Code for jet finding using TPC and EMCAL ESD information.
[u/mrichter/AliRoot.git] / EVE / alice-macros / pmd_hits.C
CommitLineData
2fdd5418 1// $Id$
2
3Reve::PointSet*
4pmd_hits(const char *varexp = "fX:fY:fZ",
5 const char *selection = "")
6{
7 AliRunLoader* rl = Alieve::Event::AssertRunLoader();
8 rl->LoadHits("PMD");
9
10 TTree* ht = rl->GetTreeH("PMD", false);
11
12 Reve::PointSet* points = new Reve::PointSet(Form("PMD Hits '%s'", selection));
13
14 TPointSelector ps(ht, points, varexp, selection);
15 ps.Select();
16
17 points->SetTitle(Form("N=%d", points->Size()));
18 points->SetMarkerSize(.5);
19 points->SetMarkerColor((Color_t)2);
20
21 gReve->AddRenderElement(points);
22 gReve->Redraw3D();
23
24 return points;
25}