]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/trd_hits_z_split.C
cae3fa0dcc4d72e43929c024920f4a06eb7e9cd6
[u/mrichter/AliRoot.git] / EVE / alice-macros / trd_hits_z_split.C
1 // $Id$
2
3 void trd_hits_z_split(const char *varexp    = "fX:fY:fZ:fZ",
4                       const char *selection = "")
5 {
6   AliRunLoader* rl =  Alieve::Event::AssertRunLoader();
7   rl->LoadHits("TRD");
8
9   TTree* ht = rl->GetTreeH("TRD", false);
10
11   Reve::PointSetArray* l = new Reve::PointSetArray("TRD hits - Z Slices", "");
12   l->SetMarkerColor((Color_t)7);
13   l->SetMarkerStyle(20); // full circle
14   l->SetMarkerSize(.5);
15   
16   gReve->AddRenderElement(l);
17   l->InitBins("Z", 20, -360, 360);
18
19   TPointSelector ps(ht, l, varexp, selection);
20   ps.Select();
21
22   l->CloseBins();
23
24   gReve->Redraw3D();
25 }