// $Id$
-Reve::PointSet*
+TEvePointSet*
acorde_hits(const char *varexp = "ACORDE.fX:ACORDE.fY:ACORDE.fZ",
const char *selection = "",
- Reve::RenderElement* cont = 0)
+ TEveElement* cont = 0)
{
AliRunLoader* rl = Alieve::Event::AssertRunLoader();
rl->LoadHits("ACORDE");
//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 Reve::PointSet* points = new Reve::PointSet(Form("ACORDE Hits '%s'", selection));
+ //PH TEvePointSet* points = new TEvePointSet(Form("ACORDE Hits '%s'", selection));
char form[1000];
sprintf(form,"ACORDE Hits '%s'", selection);
- Reve::PointSet* points = new Reve::PointSet(form);
+ TEvePointSet* points = new TEvePointSet(form);
- TPointSelector ps(ht, points, varexp, selection);
+ TEvePointSelector ps(ht, points, varexp, selection);
ps.Select();
- if(points->Size() == 0 && gReve->GetKeepEmptyCont() == kFALSE) {
+ if(points->Size() == 0 && gEve->GetKeepEmptyCont() == kFALSE)
+ {
Warning("acorde_hits", Form("No hits match '%s'", selection));
delete points;
- return 0;
+ return 0;
}
//PH points->SetTitle(Form("N=%d", points->Size()));
points->SetMarkerSize(.5);
points->SetMarkerColor((Color_t)2);
- if(cont)
- gReve->AddRenderElement(cont, points);
- else
- gReve->AddRenderElement(points);
- gReve->Redraw3D();
+ gEve->AddElement(points, cont);
+ gEve->Redraw3D();
return points;
}