]>
Commit | Line | Data |
---|---|---|
5a5a1232 | 1 | // $Id$ |
2 | ||
3 | Reve::PointSet* | |
4 | its_hits(const char *varexp = "fX:fY:fZ", | |
f37061fc | 5 | const char *selection = "") |
5a5a1232 | 6 | { |
7 | AliRunLoader* rl = Alieve::Event::AssertRunLoader(); | |
8 | rl->LoadHits("ITS"); | |
9 | ||
10 | TTree* ht = rl->GetTreeH("ITS", false); | |
5a5a1232 | 11 | |
7be1e8cd | 12 | //PH The line below is replaced waiting for a fix in Root |
13 | //PH which permits to use variable siza arguments in CINT | |
14 | //PH on some platforms (alphalinuxgcc, solariscc5, etc.) | |
15 | //PH Reve::PointSet* points = new Reve::PointSet(Form("ITS Hits '%s'", selection)); | |
16 | char form[1000]; | |
17 | sprintf(form,"ITS Hits '%s'", selection); | |
18 | Reve::PointSet* points = new Reve::PointSet(form); | |
f37061fc | 19 | |
20 | TPointSelector ps(ht, points, varexp, selection); | |
21 | ps.Select(); | |
22 | ||
7be1e8cd | 23 | //PH points->SetTitle(Form("N=%d", points->Size())); |
24 | sprintf(form,"N=%d", points->Size()); | |
25 | points->SetTitle(form); | |
8a68912d | 26 | points->SetMarkerSize(.5); |
5a5a1232 | 27 | points->SetMarkerColor((Color_t)2); |
28 | ||
29 | gReve->AddRenderElement(points); | |
5b96ea20 | 30 | gReve->Redraw3D(); |
5a5a1232 | 31 | |
32 | return points; | |
33 | } |