]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/alice-macros/esd_V0_points.C
Put index into track's name instead of its label.
[u/mrichter/AliRoot.git] / EVE / alice-macros / esd_V0_points.C
CommitLineData
5f1b6297 1// $Id$
2
3Reve::PointSet*
4esd_V0_points()
5{
22aefef8 6 AliESDEvent* esd = Alieve::Event::AssertESD();
5f1b6297 7
8 Int_t NV0s = esd->GetNumberOfV0s();
9 Reve::PointSet* points = new Reve::PointSet("V0 CA points", NV0s);
10
11 for (Int_t n =0; n<NV0s; n++) {
12 AliESDv0* av = esd->GetV0(n);
13 points->SetNextPoint(av->GetXr(0), av->GetXr(1), av->GetXr(2));
14 points->SetPointId(av);
15 }
16
7be1e8cd 17 //PH The line below is replaced waiting for a fix in Root
18 //PH which permits to use variable siza arguments in CINT
19 //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
20 //PH points->SetTitle(Form("N=%d", points->Size()));
21 char form[1000];
22 sprintf(form,"N=%d", points->Size());
23 points->SetTitle(form);
5f1b6297 24 points->SetMarkerStyle(4);
25 points->SetMarkerSize(1);
26 points->SetMarkerColor((Color_t)30);
27
28 gReve->AddRenderElement(points);
29 gReve->Redraw3D();
30
31 return points;
32}