]>
Commit | Line | Data |
---|---|---|
5a5a1232 | 1 | // $Id$ |
2 | ||
3 | Reve::PointSet* | |
4 | tpc_hits(const char *varexp = "TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ", | |
f37061fc | 5 | const char *selection = "TPC2.fArray.fR>80") |
5a5a1232 | 6 | { |
7 | // Extracts 'major' TPC hits (not the compressed ones). | |
8 | // This gives ~2.5% of all hits. | |
9 | ||
10 | AliRunLoader* rl = Alieve::Event::AssertRunLoader(); | |
11 | rl->LoadHits("TPC"); | |
12 | ||
13 | TTree* ht = rl->GetTreeH("TPC", false); | |
f37061fc | 14 | |
15 | Reve::PointSet* points = new Reve::PointSet(Form("TPC Hits '%s'", selection)); | |
16 | points->SetSourceCS(TPointSelectorConsumer::TVT_RPhiZ); | |
17 | ||
18 | TPointSelector ps(ht, points, varexp, selection); | |
19 | ps.Select(); | |
20 | ||
21 | points->SetTitle(Form("N=%d", points->Size())); | |
4290297d | 22 | points->SetMarkerSize(2); |
5a5a1232 | 23 | points->SetMarkerColor((Color_t)3); |
24 | ||
25 | gReve->AddRenderElement(points); | |
5b96ea20 | 26 | gReve->Redraw3D(); |
5a5a1232 | 27 | |
28 | return points; | |
29 | } |