This commit was generated by cvs2svn to compensate for changes in r13732,
[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          Option_t *option      = "goff")
7 {
8   AliRunLoader* rl =  Alieve::Event::AssertRunLoader();
9   rl->LoadHits("ITS");
10
11   TTree* ht = rl->GetTreeH("ITS", false);
12   ht->Draw(varexp, selection, option);
13   
14   Reve::PointSet* points =
15     new Reve::PointSet(Form("ITS Hits '%s'", selection), ht);
16   points->SetTitle(Form("N=%d", points->GetN()));
17   points->SetMarkerColor((Color_t)2);
18
19   gReve->AddRenderElement(points);
20   gReve->DrawRenderElement(points);
21
22   return points;
23 }