]>
Commit | Line | Data |
---|---|---|
59b4cd9a | 1 | #ifndef ALIHLTPHOSONLINEDISPLAYEVENTTAB_H |
2 | #define ALIHLTPHOSONLINEDISPLAYEVENTTAB_H | |
3 | ||
4 | #include <TGTab.h> | |
5 | #include <TRootEmbeddedCanvas.h> | |
6 | #include "AliHLTPHOSOnlineDisplayTab.h" | |
7 | #include <TCanvas.h> | |
8 | #include <TH2D.h> | |
3f98e623 | 9 | #include <TH1D.h> |
b3abda11 | 10 | #include "AliHLTPHOSOnlineDisplayTH2D.h" |
55ad82a3 | 11 | #include "AliHLTPHOSConstants.h" |
14ff16ed | 12 | |
13 | //#include | |
14 | ||
b3abda11 | 15 | //#include "AliHLTPHOSOnlineDisplay.h" |
55ad82a3 | 16 | |
b3abda11 | 17 | //#define N_SAMPLES 70 //BAD, someone is going to pay for this |
18 | //#define N_SAMPLES 140 //BAD, someone is going to pay for this | |
3f98e623 | 19 | #define N_ZRCU_COORD 2 |
20 | #define N_XRCU_COORD 2 | |
21 | ||
22 | using namespace PhosHLTConst; | |
55ad82a3 | 23 | |
3f98e623 | 24 | |
59b4cd9a | 25 | class AliHLTPHOSGetEventButton; |
26 | class HOMERReader; | |
b3abda11 | 27 | //class AliHLTPHOSRcuCellEnergyDataStruct; |
59b4cd9a | 28 | class AliHLTPHOSRcuCellEnergyDataStruct; |
b3abda11 | 29 | class AliHLTPHOSOnlineDisplay; |
14ff16ed | 30 | class AliHLTPHOSSharedMemoryInterface; |
b3abda11 | 31 | |
32 | // AliHLTPHOSRcuCellEnergyDataStruct.h | |
59b4cd9a | 33 | class AliHLTPHOSOnlineDisplayEventTab : public AliHLTPHOSOnlineDisplayTab |
34 | { | |
35 | public: | |
36 | virtual ~AliHLTPHOSOnlineDisplayEventTab(); | |
b3abda11 | 37 | AliHLTPHOSOnlineDisplayEventTab(AliHLTPHOSOnlineDisplay *onlineDisplayPtr, TGTab *tabPtr, HOMERReader *fgHomerReaderPtr, HOMERReader *fgHomerReadersPtr[MAX_HOSTS], int nHosts); |
3f98e623 | 38 | // void GetRawData(TH1D *histPtr); |
39 | //AliHLTPHOSOnlineDisplayEventTab::GetRawData(TH1D *histPtr, int mod, int rcuX, int rcuZ, int x, int z, int gain) | |
40 | void GetRawData(TH1D *histPtr, int mod, int rcuX, int rcuZ, int x, int z, int gain); | |
b3abda11 | 41 | void GetRawData(TH1D *histPtr, int x, int z, int gain); |
3f98e623 | 42 | |
59b4cd9a | 43 | void UpdateDisplay(); |
44 | int GetNextEvent(); | |
45 | virtual void ReadBlockData(HOMERReader *homeReaderPtr); | |
46 | void ResetDisplay(); | |
47 | TGTab *fTab; | |
48 | TGTab *fSubTab1; | |
49 | TRootEmbeddedCanvas *fEc1, *fEc2, *fEc3, *fEc4, *fEc5, *fEc6; | |
50 | TGCompositeFrame *fSubF1, *fSubF2, *fSubF3; | |
51 | TCanvas *fgCanvasHGPtr; | |
52 | TCanvas *fgCanvasLGPtr; | |
b3abda11 | 53 | |
54 | // TH2D *fgLegoPlotLGPtr; | |
55 | // TH2D *fgLegoPlotHGPtr; | |
56 | ||
57 | AliHLTPHOSOnlineDisplayTH2D *fgLegoPlotLGPtr; | |
58 | AliHLTPHOSOnlineDisplayTH2D *fgLegoPlotHGPtr; | |
59b4cd9a | 59 | |
3f98e623 | 60 | |
61 | // int *fChannelData[N_MODULES][N_RCUS_PER_MODULE][N_ZROWS_RCU][N_XCOLUMNS_RCU][N_GAINS]; | |
62 | int *fChannelData[N_MODULES][N_XRCU_COORD][N_ZRCU_COORD][N_XCOLUMNS_RCU][N_ZROWS_RCU][N_GAINS]; | |
63 | ||
59b4cd9a | 64 | protected: |
65 | Bool_t fgAccumulate; | |
66 | ||
67 | private: | |
b3abda11 | 68 | AliHLTPHOSOnlineDisplayEventTab(); |
59b4cd9a | 69 | AliHLTPHOSGetEventButton* fgEventButtPtr; |
70 | void InitDisplay(TGTab *tabPtr); | |
b3abda11 | 71 | |
72 | // AliHLTPHOSOnlineDisplay. | |
73 | AliHLTPHOSOnlineDisplay *fOnlineDisplayPtr; | |
14ff16ed | 74 | AliHLTPHOSSharedMemoryInterface *fShmPtr; |
59b4cd9a | 75 | }; |
76 | ||
77 | ||
78 | #endif |