2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
4 /**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7 * full copyright notice. *
8 **************************************************************************/
10 void esd_VO_fill_pointset(TEvePointSet* ps, Bool_t onFly)
12 AliESDEvent* esd = AliEveEventManager::AssertESD();
14 Int_t NV0s = esd->GetNumberOfV0s();
17 for (Int_t n = 0; n < NV0s; ++n)
19 AliESDv0* av = esd->GetV0(n);
20 if (av->GetOnFlyStatus() == onFly)
23 ps->SetNextPoint(x, y, z);
29 TEvePointSet* esd_V0_points_offline()
31 TEvePointSet* points = new TEvePointSet("V0 offline vertex locations");
33 esd_VO_fill_pointset(points, kFALSE);
35 points->SetTitle(Form("N=%d", points->Size()));
36 points->SetMarkerStyle(4);
37 points->SetMarkerSize(1.5);
38 points->SetMarkerColor(kOrange+8);
40 gEve->AddElement(points);
46 TEvePointSet* esd_V0_points_onfly()
48 TEvePointSet* points = new TEvePointSet("V0 on-the-fly vertex locations");
50 esd_VO_fill_pointset(points, kTRUE);
52 points->SetTitle(Form("N=%d", points->Size()));
53 points->SetMarkerStyle(4);
54 points->SetMarkerSize(1.5);
55 points->SetMarkerColor(kPink+10);
57 gEve->AddElement(points);
66 esd_V0_points_offline();
67 esd_V0_points_onfly();