1fcd01a0 |
1 | // $Header$ |
2 | |
3 | // Function to spawn a gui for reading rootified raw-data from TPC sector test. |
4 | |
5 | #ifdef __CINT__ |
6 | |
7 | class AliRawReaderRoot; |
8 | |
9 | namespace Alieve { |
10 | class TPCData; |
11 | class TPCSector2D; |
12 | class TPCSector3D; |
13 | } |
14 | |
15 | #else |
16 | |
17 | #include <Reve/Reve.h> |
18 | #include <Reve/RGTopFrame.h> |
19 | #include <Alieve/TPCData.h> |
20 | #include <Alieve/TPCSector2D.h> |
21 | #include <Alieve/TPCSector3D.h> |
22 | |
23 | #include <RAW/AliRawReaderRoot.h> |
24 | #include <TPC/AliTPCRawStream.h> |
25 | |
26 | #include <TSystem.h> |
27 | #include <TStyle.h> |
28 | |
29 | #endif |
30 | |
31 | |
32 | using namespace Alieve; |
33 | |
34 | void tpc_gui(const char *file=0, Int_t ievent=0) |
35 | { |
36 | gStyle->SetPalette(1, 0); |
37 | |
38 | TPCLoader* l = new TPCLoader; |
39 | TPCData* d = new TPCData; |
40 | // d->SetLoadPedestal(5); |
41 | d->SetLoadThreshold(5); |
42 | d->SetAutoPedestal(kTRUE); |
43 | l->SetData(d); |
b63e46cb |
44 | l->SetDoubleSR(kTRUE); |
7ffb2ef3 |
45 | // l->SetInitParams(40, 980, 10); // min-time, max-time, threshold |
46 | // l->SetTPCEquipementMap("EquipmentIdMap.data"); |
1fcd01a0 |
47 | |
5b96ea20 |
48 | gReve->AddRenderElement(l); |
49 | gReve->NotifyBrowser(l); |
50 | gReve->DrawRenderElement(l); |
1fcd01a0 |
51 | |
52 | if(file != 0) { |
53 | l->SetFile(file); |
54 | l->OpenFile(); |
55 | l->GotoEvent(ievent); |
56 | } |
57 | } |