]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/its_hits.C
Changed default point-size in accordance with the new convention.
[u/mrichter/AliRoot.git] / EVE / alice-macros / its_hits.C
1 // $Id$
2
3 Reve::PointSet*
4 its_hits(const char *varexp    = "fX:fY:fZ",
5          const char *selection = "")
6 {
7   AliRunLoader* rl =  Alieve::Event::AssertRunLoader();
8   rl->LoadHits("ITS");
9
10   TTree* ht = rl->GetTreeH("ITS", false);
11   
12   Reve::PointSet* points = new Reve::PointSet(Form("ITS 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 }