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 #if !defined(__CINT__) || defined(__MAKECINT__)
11 #include <TEveManager.h>
12 #include <TEvePointSet.h>
14 #include <AliESDEvent.h>
16 #include <AliEveEventManager.h>
19 void esd_VO_fill_pointset(TEvePointSet* ps, Bool_t onFly)
21 AliESDEvent* esd = AliEveEventManager::AssertESD();
23 Int_t NV0s = esd->GetNumberOfV0s();
26 for (Int_t n = 0; n < NV0s; ++n)
28 AliESDv0* av = esd->GetV0(n);
29 if (av->GetOnFlyStatus() == onFly)
32 ps->SetNextPoint(x, y, z);
38 TEvePointSet* esd_V0_points_offline()
40 TEvePointSet* points = new TEvePointSet("V0 offline vertex locations");
42 esd_VO_fill_pointset(points, kFALSE);
44 points->SetTitle(Form("N=%d", points->Size()));
45 points->SetMarkerStyle(4);
46 points->SetMarkerSize(1.5);
47 points->SetMarkerColor(kOrange+8);
49 gEve->AddElement(points);
55 TEvePointSet* esd_V0_points_onfly()
57 TEvePointSet* points = new TEvePointSet("V0 on-the-fly vertex locations");
59 esd_VO_fill_pointset(points, kTRUE);
61 points->SetTitle(Form("N=%d", points->Size()));
62 points->SetMarkerStyle(4);
63 points->SetMarkerSize(1.5);
64 points->SetMarkerColor(kPink+10);
66 gEve->AddElement(points);
75 esd_V0_points_offline();
76 esd_V0_points_onfly();