]>
Commit | Line | Data |
---|---|---|
2fdd5418 | 1 | // $Id$ |
d810d0de | 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 * | |
51346b82 | 7 | * full copyright notice. * |
d810d0de | 8 | **************************************************************************/ |
2fdd5418 | 9 | |
84aff7a4 | 10 | TEvePointSet* |
2fdd5418 | 11 | pmd_hits(const char *varexp = "fX:fY:fZ", |
12 | const char *selection = "") | |
13 | { | |
d810d0de | 14 | AliRunLoader* rl = AliEveEventManager::AssertRunLoader(); |
2fdd5418 | 15 | rl->LoadHits("PMD"); |
16 | ||
17 | TTree* ht = rl->GetTreeH("PMD", false); | |
51346b82 | 18 | |
7be1e8cd | 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.) | |
84aff7a4 | 22 | //PH TEvePointSet* points = new TEvePointSet(Form("PMD Hits '%s'", selection)); |
7be1e8cd | 23 | char form[1000]; |
24 | sprintf(form,"PMD Hits '%s'", selection); | |
84aff7a4 | 25 | TEvePointSet* points = new TEvePointSet(form); |
2fdd5418 | 26 | |
84aff7a4 | 27 | TEvePointSelector ps(ht, points, varexp, selection); |
2fdd5418 | 28 | ps.Select(); |
29 | ||
7be1e8cd | 30 | //PH points->SetTitle(Form("N=%d", points->Size())); |
31 | sprintf(form,"N=%d", points->Size()); | |
32 | points->SetTitle(form); | |
2fdd5418 | 33 | points->SetMarkerSize(.5); |
fbc350a3 | 34 | points->SetMarkerColor(2); |
2fdd5418 | 35 | |
84aff7a4 | 36 | gEve->AddElement(points); |
37 | gEve->Redraw3D(); | |
2fdd5418 | 38 | |
39 | return points; | |
40 | } |