]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/alice-macros/vzero_hits.C
SetSeed dummy implementations
[u/mrichter/AliRoot.git] / EVE / alice-macros / vzero_hits.C
CommitLineData
2fdd5418 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 **************************************************************************/
ba978640 9#if !defined(__CINT__) || defined(__MAKECINT__)
10#include <TString.h>
11#include <TTree.h>
12#include <TEvePointSet.h>
13#include <TEveManager.h>
14#include <TEveTreeTools.h>
15
6c49a8e1 16#include <AliRunLoader.h>
17#include <AliEveEventManager.h>
ba978640 18#endif
2fdd5418 19
84aff7a4 20TEvePointSet*
2fdd5418 21vzero_hits(const char *varexp = "fX:fY:fZ",
91989f58 22 const char *selection = "")
2fdd5418 23{
d810d0de 24 AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
2fdd5418 25 rl->LoadHits("VZERO");
26
27 TTree* ht = rl->GetTreeH("VZERO", false);
51346b82 28
9dcd42ea 29 TEvePointSet* points = new TEvePointSet(Form("SIM Hits VZERO '%s'", selection));
2fdd5418 30
84aff7a4 31 TEvePointSelector ps(ht, points, varexp, selection);
2fdd5418 32 ps.Select();
33
199f125c 34 points->SetName(Form("VZERO Hits"));
35 const TString viz_tag("SIM Hits VZERO");
36 points->ApplyVizTag(viz_tag, "Hits");
37
9dcd42ea 38 points->SetTitle(Form("N=%d", points->Size()));
2fdd5418 39 points->SetMarkerSize(.5);
fbc350a3 40 points->SetMarkerColor(2);
2fdd5418 41
84aff7a4 42 gEve->AddElement(points);
43 gEve->Redraw3D();
2fdd5418 44
45 return points;
46}