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

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

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

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

  //PH The line below is replaced waiting for a fix in Root
  //PH which permits to use variable siza arguments in CINT
  //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
  //PH  TEvePointSet* points = new TEvePointSet(Form("FMD Hits '%s'", selection));
  char form[1000];
  sprintf(form,"FMD Hits '%s'", selection);
  TEvePointSet* points = new TEvePointSet(form);

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

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

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

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