]>
Commit | Line | Data |
---|---|---|
5f1b6297 | 1 | // $Id$ |
d810d0de | 2 | // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 |
3 | ||
4 | /************************************************************************** | |
5 | * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. * | |
6 | * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * | |
51346b82 | 7 | * full copyright notice. * |
d810d0de | 8 | **************************************************************************/ |
5f1b6297 | 9 | |
84aff7a4 | 10 | TEvePointSet* |
5f1b6297 | 11 | esd_V0_points() |
12 | { | |
d810d0de | 13 | AliESDEvent* esd = AliEveEventManager::AssertESD(); |
5f1b6297 | 14 | |
15 | Int_t NV0s = esd->GetNumberOfV0s(); | |
3a60982a | 16 | TEvePointSet* points = new TEvePointSet("V0 vertex locations", NV0s); |
5f1b6297 | 17 | |
3a60982a | 18 | Double_t x, y, z; |
19 | for (Int_t n = 0; n < NV0s; ++n) | |
84aff7a4 | 20 | { |
5f1b6297 | 21 | AliESDv0* av = esd->GetV0(n); |
3a60982a | 22 | av->GetXYZ(x, y, z); |
23 | points->SetNextPoint(x, y, z); | |
5f1b6297 | 24 | points->SetPointId(av); |
25 | } | |
26 | ||
7be1e8cd | 27 | //PH The line below is replaced waiting for a fix in Root |
28 | //PH which permits to use variable siza arguments in CINT | |
29 | //PH on some platforms (alphalinuxgcc, solariscc5, etc.) | |
30 | //PH points->SetTitle(Form("N=%d", points->Size())); | |
31 | char form[1000]; | |
32 | sprintf(form,"N=%d", points->Size()); | |
33 | points->SetTitle(form); | |
5f1b6297 | 34 | points->SetMarkerStyle(4); |
35 | points->SetMarkerSize(1); | |
36 | points->SetMarkerColor((Color_t)30); | |
37 | ||
84aff7a4 | 38 | gEve->AddElement(points); |
39 | gEve->Redraw3D(); | |
5f1b6297 | 40 | |
41 | return points; | |
42 | } |