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