]>
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 | |
ba978640 | 10 | #if !defined(__CINT__) || defined(__MAKECINT__) |
11 | #include <TString.h> | |
12 | #include <TTree.h> | |
13 | #include <TEvePointSet.h> | |
14 | #include <TEveElement.h> | |
15 | #include <TEveManager.h> | |
16 | #include <TEveTreeTools.h> | |
17 | ||
6c49a8e1 | 18 | #include <AliRunLoader.h> |
19 | #include <AliEveEventManager.h> | |
ba978640 | 20 | #endif |
21 | ||
a8600b56 | 22 | void trd_hits_z_split(const char *varexp = "fX:fY:fZ:fZ", |
23 | const char *selection = "") | |
24 | { | |
d810d0de | 25 | AliRunLoader* rl = AliEveEventManager::AssertRunLoader(); |
a8600b56 | 26 | rl->LoadHits("TRD"); |
27 | ||
28 | TTree* ht = rl->GetTreeH("TRD", false); | |
29 | ||
84aff7a4 | 30 | TEvePointSetArray* l = new TEvePointSetArray("TRD hits - Z Slices", ""); |
fbc350a3 | 31 | l->SetMarkerColor(7); |
a8600b56 | 32 | l->SetMarkerStyle(20); // full circle |
33 | l->SetMarkerSize(.5); | |
51346b82 | 34 | |
84aff7a4 | 35 | gEve->AddElement(l); |
a8600b56 | 36 | l->InitBins("Z", 20, -360, 360); |
37 | ||
84aff7a4 | 38 | TEvePointSelector ps(ht, l, varexp, selection); |
a8600b56 | 39 | ps.Select(); |
40 | ||
41 | l->CloseBins(); | |
42 | ||
84aff7a4 | 43 | gEve->Redraw3D(); |
a8600b56 | 44 | } |