]>
Commit | Line | Data |
---|---|---|
5f1b6297 | 1 | // $Id$ |
2 | ||
84aff7a4 | 3 | TEvePointSet* |
5f1b6297 | 4 | esd_V0_points() |
5 | { | |
22aefef8 | 6 | AliESDEvent* esd = Alieve::Event::AssertESD(); |
5f1b6297 | 7 | |
8 | Int_t NV0s = esd->GetNumberOfV0s(); | |
84aff7a4 | 9 | TEvePointSet* points = new TEvePointSet("V0 CA points", NV0s); |
5f1b6297 | 10 | |
84aff7a4 | 11 | for (Int_t n =0; n<NV0s; n++) |
12 | { | |
5f1b6297 | 13 | AliESDv0* av = esd->GetV0(n); |
14 | points->SetNextPoint(av->GetXr(0), av->GetXr(1), av->GetXr(2)); | |
15 | points->SetPointId(av); | |
16 | } | |
17 | ||
7be1e8cd | 18 | //PH The line below is replaced waiting for a fix in Root |
19 | //PH which permits to use variable siza arguments in CINT | |
20 | //PH on some platforms (alphalinuxgcc, solariscc5, etc.) | |
21 | //PH points->SetTitle(Form("N=%d", points->Size())); | |
22 | char form[1000]; | |
23 | sprintf(form,"N=%d", points->Size()); | |
24 | points->SetTitle(form); | |
5f1b6297 | 25 | points->SetMarkerStyle(4); |
26 | points->SetMarkerSize(1); | |
27 | points->SetMarkerColor((Color_t)30); | |
28 | ||
84aff7a4 | 29 | gEve->AddElement(points); |
30 | gEve->Redraw3D(); | |
5f1b6297 | 31 | |
32 | return points; | |
33 | } |