4 tpc_hits(const char *varexp = "TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ",
5 const char *selection = "TPC2.fArray.fR>80",
6 RenderElement* cont = 0)
8 // Extracts 'major' TPC hits (not the compressed ones).
9 // This gives ~2.5% of all hits.
11 AliRunLoader* rl = Alieve::Event::AssertRunLoader();
14 TTree* ht = rl->GetTreeH("TPC", false);
16 //PH The line below is replaced waiting for a fix in Root
17 //PH which permits to use variable siza arguments in CINT
18 //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
19 //PH Reve::PointSet* points = new Reve::PointSet(Form("TPC Hits '%s'", selection));
21 sprintf(form,"TPC Hits '%s'", selection);
22 Reve::PointSet* points = new Reve::PointSet(form);
23 points->SetSourceCS(TPointSelectorConsumer::TVT_RPhiZ);
25 TPointSelector ps(ht, points, varexp, selection);
28 if (points->Size() == 0 && gReve->GetKeepEmptyCont() == kFALSE) {
29 Warning("tpc_hits", Form("No hits match '%s'", selection));
34 //PH points->SetTitle(Form("N=%d", points->Size()));
35 sprintf(form,"N=%d", points->Size());
36 points->SetTitle(form);
37 points->SetMarkerSize(.5);
38 points->SetMarkerColor((Color_t)3);
41 gReve->AddRenderElement(cont, points);
43 gReve->AddRenderElement(points);