1 #ifndef ALIHLTPHOSONLINEDISPLAY
2 #define ALIHLTPHOSONLINEDISPLAY
4 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
8 #include "HOMERReader.h"
9 #include "HOMERWriter.h"
13 #include "AliHLTPHOSGetEventButton.h"
15 #include <TRootEmbeddedCanvas.h>
19 #define MAX_HOSTNAME_LENGTH 64
20 #define DEFAULT_PORT 42001
21 //#define MAX_PORTS_PER_HOST
24 class AliHLTPHOSRcuCellEnergyDataStruct;
26 class AliHLTPHOSOnlineDisplay : public TGMainFrame
29 // AliHLTPHOSOnlineDisplay();
30 // AliHLTPHOSOnlineDisplay(char *hosname, int port);
31 ~AliHLTPHOSOnlineDisplay();
32 // static int GetNextEvent();
37 static int ScanArguments(int argc, char** argv);
38 // static AliHLTPHOSOnlineDisplay* Instance(char *hostname, int port);
39 static AliHLTPHOSOnlineDisplay* Instance();
41 AliHLTPHOSOnlineDisplay();
42 static TGCompositeFrame *fFrame1, *fF1, *fF2, *fF3, *fF4, *fF5, *fSubF1, *fSubF2, *fSubF3;
43 // TGCompositeFrame *fFrame1, *fF1, *fF2, *fF3, *fF4, *fF5, *fSubF1, *fSubF2, *fSubF3;
45 static TGTab *fSubTab;
46 static TRootEmbeddedCanvas *fEc1, *fEc2, *fEc3, *fEc4, *fEc5, *fEc6;
47 static AliHLTPHOSGetEventButton* fgEventButtPtr;
48 static AliHLTPHOSOnlineDisplay* fgInstancePtr;
49 // static HOMERReader* fgHomerReaderPtr;
50 static TH2S *legoPlotLGPtr;
51 static TH2S *legoPlotHGPtr;
52 static char *fgDefaultDet;
53 static char *fgDefaultDataType;
55 static TCanvas *fgCanvasHGPtr;
56 static TCanvas *fgCanvasLGPtr;
61 static unsigned int fgNHosts;
62 static unsigned int fgNPorts;
63 static HOMERReader* fgHomerReaderPtr;
64 static HOMERReader* fgHomerReadersPtr[MAX_HOSTS];
65 static char *fgHosts[MAX_HOSTS];
66 static short unsigned *fgPorts;
67 static Bool_t fgAccumulate;
68 static Bool_t fgSyncronize;