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 **************************************************************************/
10 // Function to spawn a gui for reading rootified raw-data from TPC sector test.
13 // a) select AliEveTPCLoader entry in the list-tree view;
14 // you'll get a dialog to steer the data-loading process in an adjacent window
15 // b) to select a ROOT file containing the raw-data double-click on 'File:'
16 // text entry to spawn a file-dialog or type in the name
17 // c) click open to actually open the file and load an event
21 class AliRawReaderRoot;
24 class AliEveTPCSector2D;
25 class AliEveTPCSector3D;
30 #include <TEveManager.h>
31 #include <EveDet/AliEveTPCData.h>
32 #include <EveDet/AliEveTPCSector2D.h>
33 #include <EveDet/AliEveTPCSector3D.h>
35 #include <RAW/AliRawReaderRoot.h>
36 #include <TPC/AliTPCRawStream.h>
44 AliEveTPCLoader* tpc_loader = 0;
46 void tpc_gui(const char *file=0, Int_t ievent=0)
48 gStyle->SetPalette(1, 0);
50 AliEveTPCLoader* l = tpc_loader = new AliEveTPCLoader;
51 AliEveTPCData* d = new AliEveTPCData;
52 // d->SetLoadPedestal(5);
53 d->SetLoadThreshold(5);
54 d->SetAutoPedestal(kTRUE);
56 l->SetDoubleSR(kTRUE);
57 l->SetInitParams(40, 980, 10); // min-time, max-time, threshold
58 // l->SetTPCEquipementMap("EquipmentIdMap.data");