]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/OnlineDisplay/AliHLTPHOSOnlineDisplay.h
To new command line options were added the -acc and -sync. Giving the -acc argument
[u/mrichter/AliRoot.git] / HLT / PHOS / OnlineDisplay / AliHLTPHOSOnlineDisplay.h
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" 
14 #include "TGTab.h"
15 #include <TRootEmbeddedCanvas.h>
16 #include "TGFrame.h"
17
18 #define MAX_HOSTS 10
19 #define MAX_HOSTNAME_LENGTH 64
20 #define DEFAULT_PORT 42001 
21 //#define MAX_PORTS_PER_HOST
22
23 class TCanvas;
24 class AliHLTPHOSRcuCellEnergyDataStruct;
25
26 class AliHLTPHOSOnlineDisplay : public  TGMainFrame
27 {
28  public:
29   //  AliHLTPHOSOnlineDisplay();
30   //  AliHLTPHOSOnlineDisplay(char *hosname, int port);
31   ~AliHLTPHOSOnlineDisplay();
32   //  static int GetNextEvent();
33   int GetNextEvent();
34   int GetNextEvent2();
35   void InitDisplay();
36   void UpdateDisplay();
37   static int ScanArguments(int argc, char** argv);
38   //  static AliHLTPHOSOnlineDisplay* Instance(char *hostname, int port);  
39   static AliHLTPHOSOnlineDisplay* Instance();  
40  private:
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;
44   static TGTab               *fTab;
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;   
54   static int fgEvntCnt;
55   static TCanvas *fgCanvasHGPtr;
56   static TCanvas *fgCanvasLGPtr;
57
58   //  static  char *host;
59   //  static int port;
60
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;
69 };
70
71
72 #endif