]>
Commit | Line | Data |
---|---|---|
1b41ab20 | 1 | //-*- Mode: C++ -*- |
2 | // $Id$ | |
3 | ||
f5fd6f87 | 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 | //**************************************************************************/ | |
27029341 | 19 | |
59b4cd9a | 20 | #ifndef ALIHLTPHOSONLINEDISPLAYEVENTTAB_H |
21 | #define ALIHLTPHOSONLINEDISPLAYEVENTTAB_H | |
22 | ||
36f19b25 | 23 | #include "AliHLTPHOSOnlineDisplayTab.h" |
36f19b25 | 24 | #include "AliHLTPHOSConstants.h" |
14ff16ed | 25 | |
37ff2dd6 | 26 | #include "AliHLTPHOSMapper.h" |
27 | ||
27029341 | 28 | #define NZRCUCOORD 2 |
29 | #define NXRCUCOORD 2 | |
3f98e623 | 30 | |
a9c18ed8 | 31 | // using namespace PhosHLTConst; |
32 | ||
55ad82a3 | 33 | |
27029341 | 34 | class TGTab; |
36f19b25 | 35 | class TRootEmbeddedCanvas; |
27029341 | 36 | class TCanvas; |
37 | class TH2D; | |
38 | class TH1D; | |
39 | class AliHLTPHOSOnlineDisplayTH2D; | |
d456fffb | 40 | class AliHLTPHOSGetEventButton; |
6af3dade | 41 | class AliHLTHOMERReader; |
59b4cd9a | 42 | class AliHLTPHOSRcuCellEnergyDataStruct; |
b3abda11 | 43 | class AliHLTPHOSOnlineDisplay; |
3917d385 | 44 | //class AliHLTPHOSSharedMemoryInterface; |
45 | class AliHLTPHOSSharedMemoryInterfacev2; | |
37ff2dd6 | 46 | class AliHLTPHOSChannelRawDataStruct; |
d456fffb | 47 | |
59b4cd9a | 48 | class AliHLTPHOSOnlineDisplayEventTab : public AliHLTPHOSOnlineDisplayTab |
49 | { | |
50 | public: | |
d456fffb | 51 | |
59b4cd9a | 52 | virtual ~AliHLTPHOSOnlineDisplayEventTab(); |
36f19b25 | 53 | |
54 | ||
55 | AliHLTPHOSOnlineDisplayEventTab(AliHLTPHOSOnlineDisplay * onlineDisplayPtr, TGTab *tabPtr, | |
56 | AliHLTHOMERReader * homerSyncPtr, | |
57 | AliHLTHOMERReader * homerPtrs[MAXHOSTS], | |
58 | int nHosts, int runnumber = -1); | |
d456fffb | 59 | |
c890e0a1 | 60 | Int_t GetRawData(TH1D *histPtr, int x, int z, int gain); |
37ff2dd6 | 61 | |
59b4cd9a | 62 | void UpdateDisplay(); |
63 | int GetNextEvent(); | |
6af3dade | 64 | virtual void ReadBlockData(AliHLTHOMERReader *homeReaderPtr); |
36f19b25 | 65 | void FindFourierBlocks(AliHLTHOMERReader *homeReaderPtr) const; |
9d05c97d | 66 | |
59b4cd9a | 67 | void ResetDisplay(); |
f5fd6f87 | 68 | TGTab *fTab; //! |
69 | TGTab *fSubTab1; //! | |
70 | TRootEmbeddedCanvas *fEc1, *fEc2, *fEc3, *fEc4, *fEc5, *fEc6; //! | |
71 | TGCompositeFrame *fSubF1, *fSubF2, *fSubF3; //! | |
72 | TCanvas *fgCanvasPtr[NGAINS]; //! | |
73 | AliHLTPHOSOnlineDisplayTH2D *fgLegoPlotPtr[NGAINS]; //! | |
a9c18ed8 | 74 | |
75 | // int *fChannelData[NMODULES][NZROWSMOD][NXCOLUMNSMOD][NGAINS]; | |
76 | static AliHLTPHOSConstants c; | |
77 | int *fChannelData2[c.GetNMODULES()][c.GetNZROWSMOD() ][ c.GetNXCOLUMNSMOD()][c.GetNGAINS()]; | |
37ff2dd6 | 78 | |
a9c18ed8 | 79 | int *fChannelData[NMODULES][NZROWSMOD][NXCOLUMNSMOD][NGAINS]; |
37ff2dd6 | 80 | |
37ff2dd6 | 81 | Int_t fNChannelSamples[NMODULES][NZROWSMOD][NXCOLUMNSMOD][NGAINS]; |
82 | Int_t fChannelEnergy[NMODULES][NZROWSMOD][NXCOLUMNSMOD][NGAINS]; | |
a9c18ed8 | 83 | |
3f98e623 | 84 | |
a9c18ed8 | 85 | private: |
b3abda11 | 86 | AliHLTPHOSOnlineDisplayEventTab(); |
f5fd6f87 | 87 | AliHLTPHOSOnlineDisplayEventTab(const AliHLTPHOSOnlineDisplayEventTab&); |
88 | AliHLTPHOSOnlineDisplayEventTab& operator=(const AliHLTPHOSOnlineDisplayEventTab&); | |
37ff2dd6 | 89 | void FillRawData(const AliHLTPHOSChannelRawDataStruct &rawStr); |
59b4cd9a | 90 | AliHLTPHOSGetEventButton* fgEventButtPtr; |
36f19b25 | 91 | void InitDisplay(TGTab *tabPtr){}; |
92 | void InitDisplay(TGTab * tabPtr, int runnumber); | |
b3abda11 | 93 | AliHLTPHOSOnlineDisplay *fOnlineDisplayPtr; |
3917d385 | 94 | AliHLTPHOSSharedMemoryInterfacev2 *fShmPtr; |
a9c18ed8 | 95 | |
d456fffb | 96 | |
59b4cd9a | 97 | }; |
98 | ||
99 | ||
100 | #endif |