]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/test-macros/tpc_gui.C
Merge from EVE-dev to HEAD.
[u/mrichter/AliRoot.git] / EVE / test-macros / tpc_gui.C
CommitLineData
1fcd01a0 1// $Header$
2
3// Function to spawn a gui for reading rootified raw-data from TPC sector test.
4
5#ifdef __CINT__
6
7class AliRawReaderRoot;
8
9namespace Alieve {
10class TPCData;
11class TPCSector2D;
12class 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
32using namespace Alieve;
33
499585db 34TPCLoader* tpc_loader = 0;
35
1fcd01a0 36void tpc_gui(const char *file=0, Int_t ievent=0)
37{
38 gStyle->SetPalette(1, 0);
39
499585db 40 TPCLoader* l = tpc_loader = new TPCLoader;
1fcd01a0 41 TPCData* d = new TPCData;
42 // d->SetLoadPedestal(5);
43 d->SetLoadThreshold(5);
44 d->SetAutoPedestal(kTRUE);
45 l->SetData(d);
b63e46cb 46 l->SetDoubleSR(kTRUE);
7ffb2ef3 47 // l->SetInitParams(40, 980, 10); // min-time, max-time, threshold
48 // l->SetTPCEquipementMap("EquipmentIdMap.data");
1fcd01a0 49
5b96ea20 50 gReve->AddRenderElement(l);
51 gReve->NotifyBrowser(l);
52 gReve->DrawRenderElement(l);
1fcd01a0 53
54 if(file != 0) {
55 l->SetFile(file);
56 l->OpenFile();
57 l->GotoEvent(ievent);
58 }
59}