]>
Commit | Line | Data |
---|---|---|
1b41ab20 | 1 | //-*- Mode: C++ -*- |
2 | // $Id$ | |
3 | ||
36f19b25 | 4 | /************************************************************************** |
5 | * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. * | |
6 | * * | |
7 | * Authors: Per Thomas Hille for the ALICE * | |
8 | * offline/HLT Project. Contributors are mentioned in the code where * | |
9 | * appropriate. * | |
10 | * * | |
11 | * Permission to use, copy, modify and distribute this software and its * | |
12 | * documentation strictly for non-commercial purposes is hereby granted * | |
13 | * without fee, provided that the above copyright notice appears in all * | |
14 | * copies and that both the copyright notice and this permission notice * | |
15 | * appear in the supporting documentation. The authors make no claims * | |
16 | * about the suitability of this software for any purpose. It is * | |
17 | * provided "as is" without express or implied warranty. * | |
18 | **************************************************************************/ | |
19 | ||
f704525c | 20 | #ifndef ALIHLTPHOSONLINEDISPLAYFOURIERTAB_H |
21 | #define ALIHLTPHOSONLINEDISPLAYFOURIERTAB_H | |
22 | ||
23 | #include <TGTab.h> | |
24 | #include <TRootEmbeddedCanvas.h> | |
25 | #include "AliHLTPHOSOnlineDisplayTab.h" | |
26 | ||
36f19b25 | 27 | // #include <TCanvas.h> |
28 | // #include <TH2D.h> | |
29 | // #include <TH1D.h> | |
30 | // #include "AliHLTPHOSOnlineDisplayTH2D.h" | |
31 | // #include "AliHLTPHOSConstants.h" | |
32 | // //#include "AliHLTPHOSFourier.h" | |
33 | // #include "AliHLTPHOSRcuFFTDataStruct.h" | |
34 | #define NZRCUCOORD 2 | |
35 | #define NXRCUCOORD 2 | |
f704525c | 36 | |
37 | using namespace PhosHLTConst; | |
38 | ||
36f19b25 | 39 | class TH1D; |
40 | class TH2D; | |
41 | class TCanvas; | |
42 | class TRootEmbeddedCanvas; | |
43 | class TGTab; | |
44 | class AliHLTPHOSRcuFFTDataStruct; | |
45 | class AliHLTPHOSConstants; | |
46 | class AliHLTPHOSOnlineDisplayTH2D; | |
f704525c | 47 | class AliHLTPHOSGetEventButton; |
48 | class AliHLTHOMERReader; | |
49 | class AliHLTPHOSRcuCellEnergyDataStruct; | |
50 | class AliHLTPHOSOnlineDisplay; | |
51 | class AliHLTPHOSSharedMemoryInterface; | |
52 | class AliHLTPHOSFourier; | |
53 | ||
54 | class AliHLTPHOSOnlineDisplayFourierTab : public AliHLTPHOSOnlineDisplayTab | |
55 | { | |
56 | public: | |
36f19b25 | 57 | virtual ~AliHLTPHOSOnlineDisplayFourierTab(); // destructor |
58 | AliHLTPHOSOnlineDisplayFourierTab(AliHLTPHOSOnlineDisplay * const onlineDisplayPtr, TGTab *tabPtr, const AliHLTHOMERReader * fgHomerReaderPtr, const AliHLTHOMERReader * const fgHomerReadersPtr[MAXHOSTS], int nHosts); // constructor | |
59 | Int_t GetRawData(TH1D *histPtr, int x, int z, int gain); // GetRawData | |
60 | void UpdateDisplay(); //UpdateDisplay | |
61 | int GetNextEvent(); //GetNextEvent | |
62 | virtual void ReadBlockData(AliHLTHOMERReader * const homeReaderPtr); //ReadBlockData | |
63 | void FindFourierBlocks(AliHLTHOMERReader *homeReaderPtr);//FindFourierBlocks | |
64 | ||
65 | void ResetDisplay(); //ResetDisplay | |
66 | TGTab *fTab; //fTab | |
67 | TGTab *fSubTab1; //fSubTab1 | |
68 | TRootEmbeddedCanvas *fEc1, *fEc2, *fEc3, *fEc4, *fEc5, *fEc6; //Canvases | |
f704525c | 69 | // TRootEmbeddedCanvas *fEc1, *fEc2, *fEc3, *fEc4; |
70 | // TGCompositeFrame *fSubF1, *fSubF2; | |
36f19b25 | 71 | TGCompositeFrame *fSubF1, *fSubF2, *fSubF3; //frames |
72 | TCanvas *fgCanvasPtr[NGAINS]; // canvas | |
73 | AliHLTPHOSOnlineDisplayTH2D *fgLegoPlotPtr[NGAINS]; //legoplot | |
f704525c | 74 | |
36f19b25 | 75 | TH1D *fFourierHistoNew[NGAINS]; //histogram |
76 | TH1D *fFourierHistoOld[NGAINS]; //histogram | |
77 | TH1D *fFourierHistoAccumulated[NGAINS]; //histogram | |
f704525c | 78 | |
27029341 | 79 | // TRootEmbeddedCanvas *fFourierHistoAccumulatedEC[NGAINS]; |
80 | // TRootEmbeddedCanvas *fFourierHistoOldEC[NGAINS]; | |
81 | // TRootEmbeddedCanvas *fFourierHistoAccumulatedEC[NGAINS]; | |
f704525c | 82 | |
27029341 | 83 | // int *fChannelData[NMODULES][NXRCUCOORD][NZRCUCOORD][NXCOLUMNSRCU][NZROWSRCU][NGAINS]; |
84 | // Int_t fNChannelSamples[NMODULES][NXRCUCOORD][NZRCUCOORD][NXCOLUMNSRCU][NZROWSRCU][NGAINS]; | |
85 | // Int_t fChannelEnergy[NMODULES][NXRCUCOORD][NZRCUCOORD][NXCOLUMNSRCU][NZROWSRCU][NGAINS]; | |
36f19b25 | 86 | const char* Gain2Text(const int gain, const char delimeter); //gain2text |
f704525c | 87 | |
88 | protected: | |
36f19b25 | 89 | Bool_t fgAccumulate; //fgAccumulate |
f704525c | 90 | |
91 | private: | |
36f19b25 | 92 | void FillHistograms(const AliHLTPHOSRcuFFTDataStruct psd, const int size); //FillHistograms |
93 | ||
94 | AliHLTPHOSOnlineDisplayFourierTab(); // default constructor | |
95 | AliHLTPHOSGetEventButton* fgEventButtPtr; // fgEventButtPtr | |
96 | void InitDisplay(TGTab *tabPtr); //InitDisplay | |
97 | AliHLTPHOSOnlineDisplay *fOnlineDisplayPtr; //fOnlineDisplayPtr | |
98 | AliHLTPHOSSharedMemoryInterface *fShmPtr; //fShmPtr | |
99 | ||
100 | AliHLTPHOSFourier *fFourierPtr; //fFourierPtr | |
101 | char fGainText[256]; //fGainText | |
102 | ||
103 | unsigned long fEvtCnt; //fEvtCnt | |
f704525c | 104 | |
36f19b25 | 105 | AliHLTPHOSOnlineDisplayFourierTab(const AliHLTPHOSOnlineDisplayFourierTab&); //copy constructor |
106 | AliHLTPHOSOnlineDisplayFourierTab & operator=(const AliHLTPHOSOnlineDisplayFourierTab); //assignement operator | |
f704525c | 107 | |
f704525c | 108 | |
f704525c | 109 | }; |
110 | ||
111 | ||
112 | #endif |