]>
Commit | Line | Data |
---|---|---|
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); |
1fcd01a0 | 45 | |
46 | TGListTreeItem* loader_item = gReve->AddRenderElement(l); | |
47 | ||
48 | if(file != 0) { | |
49 | l->SetFile(file); | |
50 | l->OpenFile(); | |
51 | l->GotoEvent(ievent); | |
52 | } | |
53 | } |