]>
Commit | Line | Data |
---|---|---|
a8600b56 | 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 | **************************************************************************/ |
a8600b56 | 9 | |
10 | void trd_hits_z_split(const char *varexp = "fX:fY:fZ:fZ", | |
11 | const char *selection = "") | |
12 | { | |
d810d0de | 13 | AliRunLoader* rl = AliEveEventManager::AssertRunLoader(); |
a8600b56 | 14 | rl->LoadHits("TRD"); |
15 | ||
16 | TTree* ht = rl->GetTreeH("TRD", false); | |
17 | ||
84aff7a4 | 18 | TEvePointSetArray* l = new TEvePointSetArray("TRD hits - Z Slices", ""); |
fbc350a3 | 19 | l->SetMarkerColor(7); |
a8600b56 | 20 | l->SetMarkerStyle(20); // full circle |
21 | l->SetMarkerSize(.5); | |
51346b82 | 22 | |
84aff7a4 | 23 | gEve->AddElement(l); |
a8600b56 | 24 | l->InitBins("Z", 20, -360, 360); |
25 | ||
84aff7a4 | 26 | TEvePointSelector ps(ht, l, varexp, selection); |
a8600b56 | 27 | ps.Select(); |
28 | ||
29 | l->CloseBins(); | |
30 | ||
84aff7a4 | 31 | gEve->Redraw3D(); |
a8600b56 | 32 | } |