In muon-related macros in EVE:
[u/mrichter/AliRoot.git] / EVE / alice-macros / fmd_hits2.C
CommitLineData
20dae051 1// $Id$
a284ebe7 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}