]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/OnlineDisplay/AliHLTPHOSOnlineDisplay.h
Debug msg
[u/mrichter/AliRoot.git] / HLT / PHOS / OnlineDisplay / AliHLTPHOSOnlineDisplay.h
1 //-*- Mode: C++ -*-
2 // $Id$
3
4 #ifndef ALIHLTPHOSONLINEDISPLAY_H
5 #define ALIHLTPHOSONLINEDISPLAY_H
6
7 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
8  * See cxx source for full Copyright notice */
9
10 #include "Rtypes.h"
11 #include <TGFrame.h>
12 #include "TH2.h"
13 #include "AliHLTPHOSConstants.h"
14
15
16 class TStyle;
17 class TSystem;
18 class AliHLTPHOSOnlineDisplayFourierTab;
19 class AliHLTPHOSOnlineDisplayEventTab;
20 class AliHLTPHOSConstants;
21 class AliHLTPHOSOnlineDisplayCalibTab;
22 class AliHLTPHOSOnlineDisplayEventTab;
23 class TGFrame;
24 class TCanvas;
25 class TRootEmbeddedCanvas;
26 class TGTab;
27 class AliHLTPHOSGetEventButton;
28 class TH2;
29 class TGFrame;
30
31 class AliHLTHOMERWriter;
32 class AliHLTHOMERReader;
33 class AliHLTHOMERData;
34
35 // using namespace PhosHLTConst;
36
37 //#define N_SAMPLES 70
38 //#define N_SAMPLES 140
39 //#define MAX_HISTOGRAMS 25
40
41
42 #define MAXHISTOGRAMS 320
43 #define MAXHOSTS 20
44
45 class TCanvas;
46
47 //class AliHLTPHOSOnlineDisplay : public  TGMainFrame, public AliHLTPHOSBase
48 class AliHLTPHOSOnlineDisplay : public  TGMainFrame
49 {
50  public:
51   ~AliHLTPHOSOnlineDisplay();
52
53   /** Copy constructor */  
54   AliHLTPHOSOnlineDisplay(const AliHLTPHOSOnlineDisplay &) : 
55     TGMainFrame(),
56     //   AliHLTPHOSBase(),
57     fRunNumber(0),
58     fgRawDataCanvas(0)
59   {
60     //Copy constructor not implemented
61   }
62   
63   /** Assignment */
64   AliHLTPHOSOnlineDisplay & operator = (const AliHLTPHOSOnlineDisplay)
65   {
66     //Assignment
67     return *this; 
68   }
69
70   
71   int GetNextEvent();
72   int GetHistogram();
73   
74   void InitDisplay();
75   void EvaluateAverage();
76   int ScanArguments(int argc, char** argv);
77   static AliHLTPHOSOnlineDisplay* Instance(int argc, char** argv);  
78   static AliHLTPHOSOnlineDisplayEventTab  *fgEventTabPtr; //COMMENT
79   static AliHLTPHOSOnlineDisplayFourierTab  *fgFourierTabPtr; //COMMENT
80   void Gain2Text(const int gain,  char *txt) const;
81
82  protected:
83     
84   int fRunNumber; //COMMENT
85   //  bool fIsSetRunNumber;
86
87
88  private:
89   AliHLTPHOSOnlineDisplay();
90   AliHLTPHOSOnlineDisplay(int argc, char** argv);
91   static AliHLTPHOSOnlineDisplayCalibTab  *fgCalibTabPtr; //COMMENT
92   static TGTab               *fgTab; //COMMENT
93   static AliHLTPHOSOnlineDisplay* fgInstancePtr; //COMMENT
94   static unsigned int fgNHosts; //COMMENT
95   static unsigned int fgNPorts; //COMMENT 
96   static AliHLTHOMERReader* fgHomerReaderPtr; //COMMENT 
97   static AliHLTHOMERReader* fgHomerReadersPtr[MAXHOSTS]; //COMMENT
98   static char  *fgHosts[MAXHOSTS]; //COMMENT
99   static short unsigned    *fgPorts;  //COMMENT 
100   static Bool_t fgAccumulate; //COMMENT 
101   static Bool_t fgSyncronize; //COMMENT
102   TCanvas  *fgRawDataCanvas; //COMMENT
103   TH1D     *fgRawDataPlotsPtr[MAXHISTOGRAMS]; //COMMENT
104   
105   // int fRunNumber;
106   //  bool fIsSetRunNumber;
107
108
109 };
110
111
112 #endif