]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/esd_V0_points.C
Move contents of EVE/Alieve to EVE/EveDet as most code will remain there.
[u/mrichter/AliRoot.git] / EVE / alice-macros / esd_V0_points.C
1 // $Id$
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          *
7  * full copyright notice.                                                 *
8  **************************************************************************/
9
10 TEvePointSet*
11 esd_V0_points()
12 {
13   AliESDEvent* esd = AliEveEventManager::AssertESD();
14
15   Int_t NV0s = esd->GetNumberOfV0s();
16   TEvePointSet* points = new TEvePointSet("AliEveV0 CA points", NV0s);
17
18   for (Int_t n =0; n<NV0s; n++)
19   {
20     AliESDv0* av = esd->GetV0(n);
21     points->SetNextPoint(av->GetXr(0), av->GetXr(1), av->GetXr(2));
22     points->SetPointId(av);
23   }
24
25   //PH The line below is replaced waiting for a fix in Root
26   //PH which permits to use variable siza arguments in CINT
27   //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
28   //PH  points->SetTitle(Form("N=%d", points->Size()));
29   char form[1000];
30   sprintf(form,"N=%d", points->Size());
31   points->SetTitle(form);
32   points->SetMarkerStyle(4);
33   points->SetMarkerSize(1);
34   points->SetMarkerColor((Color_t)30);
35
36   gEve->AddElement(points);
37   gEve->Redraw3D();
38
39   return points;
40 }