]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/fmd_hits.C
doxy: code cleanup: comments and clarifications
[u/mrichter/AliRoot.git] / EVE / alice-macros / fmd_hits.C
index fe9b0594aa43d8fb60471fcff8f76610c49386a9..90bb86eb919cab9cbca778456f750c1d413c69ce 100644 (file)
@@ -1,40 +1,15 @@
-// $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 <TEveManager.h>
 
-TEvePointSet*
-fmd_hits(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();
+#include <AliEveFMDLoader.h>
+#endif
 
-  //PH  points->SetTitle(Form("N=%d", points->Size()));
-  sprintf(form,"N=%d", points->Size());
-  points->SetTitle(form);
-  points->SetMarkerSize(.5);
-  points->SetMarkerColor((Color_t)2);
-
-  gEve->AddElement(points);
+void fmd_hits()
+{
+  gStyle->SetPalette(1);
+  AliEveFMDLoader* gFmdLoader = AliEveFMDLoader::Instance();
+  gFmdLoader->LoadHits();
   gEve->Redraw3D();
-
-  return points;
 }