3 // // $Id: AliHLTEMCALOnlineDisplayEventTab.h 35071 2009-09-29 05:26:09Z phille $
5 // /**************************************************************************
6 // * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
8 // * Authors: Per Thomas Hille for the ALICE *
9 // * offline/HLT Project. Contributors are mentioned in the code where *
12 // * Permission to use, copy, modify and distribute this software and its *
13 // * documentation strictly for non-commercial purposes is hereby granted *
14 // * without fee, provided that the above copyright notice appears in all *
15 // * copies and that both the copyright notice and this permission notice *
16 // * appear in the supporting documentation. The authors make no claims *
17 // * about the suitability of this software for any purpose. It is *
18 // * provided "as is" without express or implied warranty. *
19 // **************************************************************************/
21 // #ifndef ALIHLTEMCALONLINEDISPLAYEVENTTAB_H
22 // #define ALIHLTEMCALONLINEDISPLAYEVENTTAB_H
25 // #include "AliHLTEMCALOnlineDisplayTab.h"
26 // #include "AliHLTEMCALConstants.h"
27 // #include "AliHLTEMCALMapper.h"
30 // #define NZRCUCOORD 2
31 // #define NXRCUCOORD 2
34 // using namespace EmcalHLTConst;
38 // class TRootEmbeddedCanvas;
42 // class AliHLTEMCALOnlineDisplayTH2D;
43 // class AliHLTEMCALGetEventButton;
44 // class AliHLTHOMERReader;
46 // //class AliHLTEMCALRcuCellEnergyDataStruct;
48 // class AliHLTCaloRcuCellEnergyDataStruct;
51 // class AliHLTEMCALOnlineDisplay;
52 // //class AliHLTEMCALSharedMemoryInterface;
54 // //class AliHLTEMCALSharedMemoryInterfacev2;
56 // //class AliHLTCaloSharedMemoryInterfacev2;
58 // class AliHLTEMCALSharedMemoryInterface;
61 // //class AliHLTEMCALChannelRawDataStruct;
64 // class AliHLTCaloChannelRawDataStruct;
67 // class AliHLTEMCALOnlineDisplayEventTab : public AliHLTEMCALOnlineDisplayTab
71 // virtual ~AliHLTEMCALOnlineDisplayEventTab();
74 // AliHLTEMCALOnlineDisplayEventTab(AliHLTEMCALOnlineDisplay * onlineDisplayPtr, TGTab *tabPtr,
75 // AliHLTHOMERReader * homerSyncPtr,
76 // AliHLTHOMERReader * homerPtrs[MAXHOSTS],
77 // int nHosts, int runnumber = -1);
78 // // AliHLTEMCALOnlineDisplayEventTab(AliHLTEMCALOnlineDisplay *onlineDisplayPtr, TGTab *tabPtr,
79 // // AliHLTHOMERReader *fgHomerReaderPtr,
80 // // AliHLTHOMERReader *fgHomerReadersPtr[MAXHOSTS],
81 // // int nHosts, const int runnumber = -1);
89 // void SetRunNumber(const int runnumber)
92 // fRunNumber = runnumber ;
93 // cout << __FILE__ <<":"<< __LINE__ << "RunNumber was set to "<< fRunNumber <<endl; ;
97 // Int_t GetRawData(TH1D *histPtr, int x, int z, int gain);
99 // void UpdateDisplay();
100 // int GetNextEvent();
101 // virtual void ReadBlockData(AliHLTHOMERReader *homeReaderPtr);
102 // void FindFourierBlocks(AliHLTHOMERReader *homeReaderPtr) const;
104 // void ResetDisplay();
107 // TRootEmbeddedCanvas *fEc1, *fEc2, *fEc3, *fEc4, *fEc5, *fEc6;
108 // TGCompositeFrame *fSubF1, *fSubF2, *fSubF3;
109 // TCanvas *fgCanvasPtr[NGAINS];
110 // AliHLTEMCALOnlineDisplayTH2D *fgLegoPlotPtr[NGAINS];
113 // int *fChannelData[NMODULES][NXRCUCOORD][NZRCUCOORD][NXCOLUMNSRCU][NZROWSRCU][NGAINS];
114 // Int_t fNChannelSamples[NMODULES][NXRCUCOORD][NZRCUCOORD][NXCOLUMNSRCU][NZROWSRCU][NGAINS];
115 // Int_t fChannelEnergy[NMODULES][NXRCUCOORD][NZRCUCOORD][NXCOLUMNSRCU][NZROWSRCU][NGAINS];
118 // int *fChannelData[NMODULES][NZROWSMOD][NXCOLUMNSMOD][NGAINS];
119 // Int_t fNChannelSamples[NMODULES][NZROWSMOD][NXCOLUMNSMOD][NGAINS];
120 // Int_t fChannelEnergy[NMODULES][NZROWSMOD][NXCOLUMNSMOD][NGAINS];
123 // AliHLTEMCALOnlineDisplayEventTab();
125 // // void FillRawData(const AliHLTEMCALChannelRawDataStruct &rawStr);
126 // void FillRawData(const AliHLTCaloChannelRawDataStruct &rawStr);
129 // AliHLTEMCALGetEventButton* fgEventButtPtr;
130 // void InitDisplay(TGTab *tabPtr){};
131 // void InitDisplay(TGTab * tabPtr, int runnumber);
132 // AliHLTEMCALOnlineDisplay *fOnlineDisplayPtr;
133 // // AliHLTCaloSharedMemoryInterfacev2 *fShmPtr;
134 // AliHLTEMCALSharedMemoryInterface *fShmPtr;