3 // Function to spawn a gui for reading rootified raw-data from TPC sector test.
6 // a) select TPCLoader entry in the list-tree view;
7 // you'll get a dialog to steer the data-loading process in an adjacent window
8 // b) to select a ROOT file containing the raw-data double-click on 'File:'
9 // text entry to spawn a file-dialog or type in the name
10 // c) click open to actually open the file and load an event
14 class AliRawReaderRoot;
24 #include <Reve/Reve.h>
25 #include <Reve/RGTopFrame.h>
26 #include <Alieve/TPCData.h>
27 #include <Alieve/TPCSector2D.h>
28 #include <Alieve/TPCSector3D.h>
30 #include <RAW/AliRawReaderRoot.h>
31 #include <TPC/AliTPCRawStream.h>
39 using namespace Alieve;
41 TPCLoader* tpc_loader = 0;
43 void tpc_gui(const char *file=0, Int_t ievent=0)
45 gStyle->SetPalette(1, 0);
47 TPCLoader* l = tpc_loader = new TPCLoader;
48 TPCData* d = new TPCData;
49 // d->SetLoadPedestal(5);
50 d->SetLoadThreshold(5);
51 d->SetAutoPedestal(kTRUE);
53 l->SetDoubleSR(kTRUE);
54 // l->SetInitParams(40, 980, 10); // min-time, max-time, threshold
55 // l->SetTPCEquipementMap("EquipmentIdMap.data");
57 gReve->AddRenderElement(l);
58 gReve->NotifyBrowser(l);
59 gReve->DrawRenderElement(l);