]>
Commit | Line | Data |
---|---|---|
ad4d700a | 1 | #ifndef ALIHLTPHOSONLINEDISPLAY |
2 | #define ALIHLTPHOSONLINEDISPLAY | |
3 | ||
4 | /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | #include "HOMERData.h" | |
8 | #include "HOMERReader.h" | |
9 | #include "HOMERWriter.h" | |
10 | #include "Rtypes.h" | |
11 | #include <TGFrame.h> | |
12 | #include "TH2.h" | |
13 | #include "AliHLTPHOSGetEventButton.h" | |
297d5075 | 14 | #include "TGTab.h" |
15 | #include <TRootEmbeddedCanvas.h> | |
16 | #include "TGFrame.h" | |
ad4d700a | 17 | |
134dc672 | 18 | #define MAX_HOSTS 10 |
19 | #define MAX_HOSTNAME_LENGTH 64 | |
20 | #define DEFAULT_PORT 42001 | |
21 | //#define MAX_PORTS_PER_HOST | |
22 | ||
ad4d700a | 23 | class TCanvas; |
080ec6a9 | 24 | class AliHLTPHOSRcuCellEnergyDataStruct; |
25 | ||
ad4d700a | 26 | class AliHLTPHOSOnlineDisplay : public TGMainFrame |
27 | { | |
28 | public: | |
29 | AliHLTPHOSOnlineDisplay(); | |
297d5075 | 30 | AliHLTPHOSOnlineDisplay(char *hosname, int port); |
ad4d700a | 31 | ~AliHLTPHOSOnlineDisplay(); |
297d5075 | 32 | // static int GetNextEvent(); |
33 | int GetNextEvent(); | |
134dc672 | 34 | int GetNextEvent2(); |
297d5075 | 35 | void InitDisplay(); |
36 | void UpdateDisplay(); | |
134dc672 | 37 | static int ScanArguments(int argc, char** argv); |
38 | // static AliHLTPHOSOnlineDisplay* Instance(char *hostname, int port); | |
39 | static AliHLTPHOSOnlineDisplay* Instance(); | |
ad4d700a | 40 | private: |
134dc672 | 41 | static TGCompositeFrame *fFrame1, *fF1, *fF2, *fF3, *fF4, *fF5, *fSubF1, *fSubF2, *fSubF3; |
297d5075 | 42 | static TGTab *fTab; |
134dc672 | 43 | static TGTab *fSubTab; |
297d5075 | 44 | static TRootEmbeddedCanvas *fEc1, *fEc2, *fEc3, *fEc4, *fEc5, *fEc6; |
080ec6a9 | 45 | static AliHLTPHOSGetEventButton* fgEventButtPtr; |
ad4d700a | 46 | static AliHLTPHOSOnlineDisplay* fgInstancePtr; |
080ec6a9 | 47 | static HOMERReader* fgHomerReaderPtr; |
ad4d700a | 48 | static TH2S *legoPlotLGPtr; |
49 | static TH2S *legoPlotHGPtr; | |
080ec6a9 | 50 | static char *fgDefaultDet; |
51 | static char *fgDefaultDataType; | |
ad4d700a | 52 | static int fgEvntCnt; |
080ec6a9 | 53 | static TCanvas *fgCanvasHGPtr; |
54 | static TCanvas *fgCanvasLGPtr; | |
134dc672 | 55 | |
56 | static char *host; | |
57 | // char *port; | |
58 | static int port; | |
59 | ||
60 | static unsigned int fgNHosts; | |
61 | static unsigned int fgNPorts; | |
62 | // static const char **fgHosts; | |
63 | ||
64 | static HOMERReader* fgHomerReadersPtr[MAX_HOSTS]; | |
65 | ||
66 | static char *fgHosts[MAX_HOSTS]; | |
67 | // static char **fgHosts; | |
68 | // static short unsigned fgPorts[MAX_HOSTS]; | |
69 | static short unsigned *fgPorts; | |
70 | ||
080ec6a9 | 71 | static Bool_t fgAccumulate; |
134dc672 | 72 | // static Bool_t test[17920][2]; |
ad4d700a | 73 | }; |
74 | ||
75 | ||
76 | #endif |