]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/trd_hits_z_split.C
doxy: code cleanup: comments and clarifications
[u/mrichter/AliRoot.git] / EVE / alice-macros / trd_hits_z_split.C
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 #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
18 #include <AliRunLoader.h>
19 #include <AliEveEventManager.h>
20 #endif
21
22 void trd_hits_z_split(const char *varexp    = "fX:fY:fZ:fZ",
23                       const char *selection = "")
24 {
25   AliRunLoader* rl =  AliEveEventManager::AssertRunLoader();
26   rl->LoadHits("TRD");
27
28   TTree* ht = rl->GetTreeH("TRD", false);
29
30   TEvePointSetArray* l = new TEvePointSetArray("TRD hits - Z Slices", "");
31   l->SetMarkerColor(7);
32   l->SetMarkerStyle(20); // full circle
33   l->SetMarkerSize(.5);
34
35   gEve->AddElement(l);
36   l->InitBins("Z", 20, -360, 360);
37
38   TEvePointSelector ps(ht, l, varexp, selection);
39   ps.Select();
40
41   l->CloseBins();
42
43   gEve->Redraw3D();
44 }