ROOT logo
// $Id$
// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007

/**************************************************************************
 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
 * full copyright notice.                                                 *
 **************************************************************************/
#if !defined(__CINT__) || defined(__MAKECINT__)
#include <TString.h>
#include <TTree.h>
#include <TEvePointSet.h>
#include <TEveManager.h>
#include <TEveTreeTools.h>

#include <AliRunLoader.h>
#include <AliEveEventManager.h>
#endif

TEvePointSet*
vzero_hits(const char *varexp    = "fX:fY:fZ",
	   const char *selection = "")
{
  AliRunLoader* rl =  AliEveEventManager::AssertRunLoader();
  rl->LoadHits("VZERO");

  TTree* ht = rl->GetTreeH("VZERO", false);

  TEvePointSet* points = new TEvePointSet(Form("SIM Hits VZERO '%s'", selection));

  TEvePointSelector ps(ht, points, varexp, selection);
  ps.Select();

  points->SetName(Form("VZERO Hits"));
  const TString viz_tag("SIM Hits VZERO");
  points->ApplyVizTag(viz_tag, "Hits");

  points->SetTitle(Form("N=%d", points->Size()));
  points->SetMarkerSize(.5);
  points->SetMarkerColor(2);

  gEve->AddElement(points);
  gEve->Redraw3D();

  return points;
}
 vzero_hits.C:1
 vzero_hits.C:2
 vzero_hits.C:3
 vzero_hits.C:4
 vzero_hits.C:5
 vzero_hits.C:6
 vzero_hits.C:7
 vzero_hits.C:8
 vzero_hits.C:9
 vzero_hits.C:10
 vzero_hits.C:11
 vzero_hits.C:12
 vzero_hits.C:13
 vzero_hits.C:14
 vzero_hits.C:15
 vzero_hits.C:16
 vzero_hits.C:17
 vzero_hits.C:18
 vzero_hits.C:19
 vzero_hits.C:20
 vzero_hits.C:21
 vzero_hits.C:22
 vzero_hits.C:23
 vzero_hits.C:24
 vzero_hits.C:25
 vzero_hits.C:26
 vzero_hits.C:27
 vzero_hits.C:28
 vzero_hits.C:29
 vzero_hits.C:30
 vzero_hits.C:31
 vzero_hits.C:32
 vzero_hits.C:33
 vzero_hits.C:34
 vzero_hits.C:35
 vzero_hits.C:36
 vzero_hits.C:37
 vzero_hits.C:38
 vzero_hits.C:39
 vzero_hits.C:40
 vzero_hits.C:41
 vzero_hits.C:42
 vzero_hits.C:43
 vzero_hits.C:44
 vzero_hits.C:45
 vzero_hits.C:46
 vzero_hits.C:47