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 <TTree.h>
#include <TStyle.h>
#include <TString.h>
#include <TEveManager.h>
#include <TEvePointSet.h>
#include <TEveTrans.h>

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

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

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

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

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

  points->SetName(Form("PMD Hits"));
  const TString viz_tag("SIM Hits PMD");
  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;
}
 pmd_hits.C:1
 pmd_hits.C:2
 pmd_hits.C:3
 pmd_hits.C:4
 pmd_hits.C:5
 pmd_hits.C:6
 pmd_hits.C:7
 pmd_hits.C:8
 pmd_hits.C:9
 pmd_hits.C:10
 pmd_hits.C:11
 pmd_hits.C:12
 pmd_hits.C:13
 pmd_hits.C:14
 pmd_hits.C:15
 pmd_hits.C:16
 pmd_hits.C:17
 pmd_hits.C:18
 pmd_hits.C:19
 pmd_hits.C:20
 pmd_hits.C:21
 pmd_hits.C:22
 pmd_hits.C:23
 pmd_hits.C:24
 pmd_hits.C:25
 pmd_hits.C:26
 pmd_hits.C:27
 pmd_hits.C:28
 pmd_hits.C:29
 pmd_hits.C:30
 pmd_hits.C:31
 pmd_hits.C:32
 pmd_hits.C:33
 pmd_hits.C:34
 pmd_hits.C:35
 pmd_hits.C:36
 pmd_hits.C:37
 pmd_hits.C:38
 pmd_hits.C:39
 pmd_hits.C:40
 pmd_hits.C:41
 pmd_hits.C:42
 pmd_hits.C:43
 pmd_hits.C:44
 pmd_hits.C:45
 pmd_hits.C:46
 pmd_hits.C:47
 pmd_hits.C:48
 pmd_hits.C:49