2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
4 /**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7 * full copyright notice. *
8 **************************************************************************/
9 #if !defined(__CINT__) || defined(__MAKECINT__)
11 #include <TEvePointSet.h>
12 #include <TEveElement.h>
13 #include <TEveManager.h>
14 #include <TEveTreeTools.h>
16 #include <STEER/STEER/AliRunLoader.h>
17 #include <EveBase/AliEveEventManager.h>
20 void its_hits_layer_split(const char *varexp = "fX:fY:fZ:GetLayer()",
21 const char *selection = "")
23 // Extracts 'major' TPC hits (not the compressed ones).
24 // This gives ~2.5% of all hits.
26 printf("THIS SCRIPT DOES NOT WORK.\n"
27 "GetLayer() crashes when trying to load ITS geometry.\n"
28 "Needs to be fixed together with ITS experts.\n");
31 AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
34 TTree* ht = rl->GetTreeH("ITS", false);
36 TEvePointSetArray* l = new TEvePointSetArray("ITS hits - Layer Slices", "");
38 l->SetMarkerStyle(2); // cross
42 l->InitBins("Layer", 6, 0.5, 6.5);
44 TEvePointSelector ps(ht, l, varexp, selection);