]>
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 | |
ba978640 | 10 | #if !defined(__CINT__) || defined(__MAKECINT__) |
11 | #include <TTree.h> | |
12 | #include <TStyle.h> | |
13 | #include <TString.h> | |
14 | #include <TEveManager.h> | |
15 | #include <TEvePointSet.h> | |
16 | #include <TEveTrans.h> | |
17 | ||
6c49a8e1 | 18 | #include <AliRunLoader.h> |
19 | #include <AliEveEventManager.h> | |
ba978640 | 20 | #endif |
21 | ||
84aff7a4 | 22 | TEvePointSet* |
2fdd5418 | 23 | pmd_hits(const char *varexp = "fX:fY:fZ", |
24 | const char *selection = "") | |
25 | { | |
d810d0de | 26 | AliRunLoader* rl = AliEveEventManager::AssertRunLoader(); |
2fdd5418 | 27 | rl->LoadHits("PMD"); |
28 | ||
29 | TTree* ht = rl->GetTreeH("PMD", false); | |
51346b82 | 30 | |
30650838 | 31 | TEvePointSet* points = new TEvePointSet(Form("PMD Hits '%s'", selection)); |
2fdd5418 | 32 | |
84aff7a4 | 33 | TEvePointSelector ps(ht, points, varexp, selection); |
2fdd5418 | 34 | ps.Select(); |
35 | ||
30650838 | 36 | points->SetName(Form("PMD Hits")); |
37 | const TString viz_tag("SIM Hits PMD"); | |
38 | points->ApplyVizTag(viz_tag, "Hits"); | |
39 | ||
9dcd42ea | 40 | points->SetTitle(Form("N=%d", points->Size())); |
2fdd5418 | 41 | points->SetMarkerSize(.5); |
fbc350a3 | 42 | points->SetMarkerColor(2); |
2fdd5418 | 43 | |
84aff7a4 | 44 | gEve->AddElement(points); |
45 | gEve->Redraw3D(); | |
2fdd5418 | 46 | |
47 | return points; | |
48 | } |