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