]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/alice-macros/fmd_hits2.C
Set svn:keywords prop.
[u/mrichter/AliRoot.git] / EVE / alice-macros / fmd_hits2.C
CommitLineData
a284ebe7 1// $Id: fmd_hits.C 26897 2008-06-25 23:58:36Z mtadel $
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
10TEvePointSet*
11fmd_hits2(const char *varexp = "fX:fY:fZ",
12 const char *selection = "")
274799f3 13{
a284ebe7 14 AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
15 rl->LoadHits("FMD");
16
17 TTree* ht = rl->GetTreeH("FMD", false);
18
19 //PH The line below is replaced waiting for a fix in Root
20 //PH which permits to use variable siza arguments in CINT
21 //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
22 //PH TEvePointSet* points = new TEvePointSet(Form("FMD Hits '%s'", selection));
23 char form[1000];
24 sprintf(form,"FMD Hits '%s'", selection);
25 TEvePointSet* points = new TEvePointSet(form);
26
27 TEvePointSelector ps(ht, points, varexp, selection);
28 ps.Select();
29
30 //PH points->SetTitle(Form("N=%d", points->Size()));
31 sprintf(form,"N=%d", points->Size());
32 points->SetTitle(form);
33 points->SetMarkerSize(.5);
34 points->SetMarkerColor(2);
35
36 gEve->AddElement(points);
274799f3 37 gEve->Redraw3D();
a284ebe7 38
39 return points;
274799f3 40}