- ht->SetEstimate(400*ht->GetEntries());
- ht->Draw(varexp, selection, option);
-
- Reve::PointSet* points =
- new Reve::PointSet(Form("TPC Hits '%s'", selection), ht,
- Reve::PointSet::TVT_RPhiZ);
- points->SetTitle(Form("N=%d", points->GetN()));
- points->SetMarkerColor((Color_t)3);
-
- gReve->AddRenderElement(points);
- gReve->DrawRenderElement(points);
+
+ //PH The line below is replaced waiting for a fix in Root
+ //PH which permits to use variable siza arguments in CINT
+ //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+ //PH TEvePointSet* points = new TEvePointSet(Form("TPC Hits '%s'", selection));
+ char form[1000];
+ sprintf(form,"TPC Hits '%s'", selection);
+ TEvePointSet* points = new TEvePointSet(form);
+ points->SetSourceCS(TEvePointSelectorConsumer::kTVT_RPhiZ);
+
+ TEvePointSelector ps(ht, points, varexp, selection);
+ ps.Select();
+
+ if (points->Size() == 0 && gEve->GetKeepEmptyCont() == kFALSE) {
+ Warning("tpc_hits", Form("No hits match '%s'", selection));
+ delete points;
+ return 0;
+ }
+
+ //PH points->SetTitle(Form("N=%d", points->Size()));
+ sprintf(form,"N=%d", points->Size());
+ points->SetTitle(form);
+ points->SetMarkerSize(.5);
+ points->SetMarkerColor(3);
+
+ gEve->AddElement(points, cont);
+ gEve->Redraw3D();