]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/its_hits_layer_split.C
fb01526a1253ea770e03bb8a0cc70048862b4cbe
[u/mrichter/AliRoot.git] / EVE / alice-macros / its_hits_layer_split.C
1 // $Id$
2
3 void its_hits_layer_split(const char *varexp    = "fX:fY:fZ:fLayer",
4                           const char *selection = "")
5 {
6   // Extracts 'major' TPC hits (not the compressed ones).
7   // This gives ~2.5% of all hits.
8
9   AliRunLoader* rl =  Alieve::Event::AssertRunLoader();
10   rl->LoadHits("ITS");
11
12   TTree* ht = rl->GetTreeH("ITS", false);
13
14   Reve::PointSetArray* l = new Reve::PointSetArray("ITS hits - Layer Slices", "");
15   l->SetMarkerColor((Color_t)2);
16   l->SetMarkerStyle(2); // cross
17   l->SetMarkerSize(.2);
18
19   gReve->AddRenderElement(l);
20   l->InitBins("Layer", 6, 0.5, 6.5);
21
22   TPointSelector ps(ht, l, varexp, selection);
23   ps.Select();
24
25   l->CloseBins();
26
27   gReve->Redraw3D();
28 }