]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/OnlineDisplay/AliHLTPHOSOnlineDisplay.h
Implemented embedded root canvas. The various diplays are contained
[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 class TCanvas;
19 class AliHLTPHOSRcuCellEnergyDataStruct;
20
21 class AliHLTPHOSOnlineDisplay : public  TGMainFrame
22 {
23  public:
24   AliHLTPHOSOnlineDisplay();
25   AliHLTPHOSOnlineDisplay(char *hosname, int port);
26   ~AliHLTPHOSOnlineDisplay();
27   //  static int GetNextEvent();
28   int GetNextEvent();
29   void InitDisplay();
30   void UpdateDisplay();
31   static AliHLTPHOSOnlineDisplay* Instance(char *hostname, int port);  
32
33  private:
34   static TGCompositeFrame    *fFrame1, *fF1, *fF2, *fF3, *fF4, *fF5;
35   static TGTab               *fTab;
36   static TRootEmbeddedCanvas *fEc1, *fEc2, *fEc3, *fEc4, *fEc5, *fEc6;
37   static AliHLTPHOSGetEventButton* fgEventButtPtr; 
38   static AliHLTPHOSOnlineDisplay* fgInstancePtr;
39   static HOMERReader* fgHomerReaderPtr;
40   static TH2S *legoPlotLGPtr;
41   static TH2S *legoPlotHGPtr;
42   static char *fgDefaultDet;        
43   static char *fgDefaultDataType;   
44   static int fgEvntCnt;
45   static TCanvas *fgCanvasHGPtr;
46   static TCanvas *fgCanvasLGPtr;
47   static Bool_t fgAccumulate;
48   static Bool_t test[17920][2];
49 };
50
51
52 #endif