]>
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 | |
ca8a6926 | 10 | void esd_VO_fill_pointset(TEvePointSet* ps, Bool_t onFly) |
5f1b6297 | 11 | { |
d810d0de | 12 | AliESDEvent* esd = AliEveEventManager::AssertESD(); |
5f1b6297 | 13 | |
14 | Int_t NV0s = esd->GetNumberOfV0s(); | |
5f1b6297 | 15 | |
3a60982a | 16 | Double_t x, y, z; |
17 | for (Int_t n = 0; n < NV0s; ++n) | |
84aff7a4 | 18 | { |
5f1b6297 | 19 | AliESDv0* av = esd->GetV0(n); |
ca8a6926 | 20 | if (av->GetOnFlyStatus() == onFly) |
21 | { | |
22 | av->GetXYZ(x, y, z); | |
23 | ps->SetNextPoint(x, y, z); | |
24 | ps->SetPointId(av); | |
25 | } | |
5f1b6297 | 26 | } |
ca8a6926 | 27 | } |
28 | ||
29 | TEvePointSet* esd_V0_points_offline() | |
30 | { | |
31 | TEvePointSet* points = new TEvePointSet("V0 offline vertex locations"); | |
5f1b6297 | 32 | |
ca8a6926 | 33 | esd_VO_fill_pointset(points, kFALSE); |
34 | ||
35 | points->SetTitle(Form("N=%d", points->Size())); | |
5f1b6297 | 36 | points->SetMarkerStyle(4); |
e6e8b28b | 37 | points->SetMarkerSize(1.5); |
fbc350a3 | 38 | points->SetMarkerColor(kOrange+8); |
5f1b6297 | 39 | |
84aff7a4 | 40 | gEve->AddElement(points); |
41 | gEve->Redraw3D(); | |
5f1b6297 | 42 | |
43 | return points; | |
44 | } | |
ca8a6926 | 45 | |
46 | TEvePointSet* esd_V0_points_onfly() | |
47 | { | |
48 | TEvePointSet* points = new TEvePointSet("V0 on-the-fly vertex locations"); | |
49 | ||
50 | esd_VO_fill_pointset(points, kTRUE); | |
51 | ||
52 | points->SetTitle(Form("N=%d", points->Size())); | |
53 | points->SetMarkerStyle(4); | |
e6e8b28b | 54 | points->SetMarkerSize(1.5); |
fbc350a3 | 55 | points->SetMarkerColor(kPink+10); |
ca8a6926 | 56 | |
57 | gEve->AddElement(points); | |
58 | gEve->Redraw3D(); | |
59 | ||
60 | return points; | |
61 | } | |
62 | ||
63 | ||
64 | void esd_V0_points() | |
65 | { | |
66 | esd_V0_points_offline(); | |
67 | esd_V0_points_onfly(); | |
68 | } |