]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/alice-macros/tpc_hits_charge_split.C
SetSeed dummy implementations
[u/mrichter/AliRoot.git] / EVE / alice-macros / tpc_hits_charge_split.C
CommitLineData
dce9d7e5 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 **************************************************************************/
dce9d7e5 9
ba978640 10#if !defined(__CINT__) || defined(__MAKECINT__)
11#include <TTree.h>
12#include <TEveManager.h>
13#include <TEvePointSet.h>
14#include <TEveTreeTools.h>
15
6c49a8e1 16#include <AliRunLoader.h>
17#include <AliEveEventManager.h>
ba978640 18#endif
19
dce9d7e5 20void tpc_hits_charge_split(const char *varexp =
21 "TPC2.fArray.fR:TPC2.fArray.fFi:TPC2.fArray.fZ"
22 ":log(TPC2.fArray.fCharge)",
23 const char *selection = "TPC2.fArray.fR>80")
24{
25 // Extracts 'major' TPC hits (not the compressed ones).
26 // This gives ~2.5% of all hits.
27
d810d0de 28 AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
dce9d7e5 29 rl->LoadHits("TPC");
30
31 TTree* ht = rl->GetTreeH("TPC", false);
32
84aff7a4 33 TEvePointSetArray* l = new TEvePointSetArray("TPC hits - Log-Charge Slices", "");
34 l->SetSourceCS(TEvePointSelectorConsumer::kTVT_RPhiZ);
fbc350a3 35 l->SetMarkerColor(3);
dce9d7e5 36 l->SetMarkerStyle(20); // full circle
37 l->SetMarkerSize(.5);
51346b82 38
84aff7a4 39 gEve->AddElement(l);
dce9d7e5 40 l->InitBins("Log Charge", 20, 0, 5);
41
84aff7a4 42 TEvePointSelector ps(ht, l, varexp, selection);
dce9d7e5 43 ps.Select();
44
45 l->CloseBins();
46
84aff7a4 47 gEve->Redraw3D();
dce9d7e5 48}