4 /**************************************************************************
5 * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
7 * Authors: Per Thomas Hille for the ALICE *
8 * offline/HLT Project. Contributors are mentioned in the code where *
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 **************************************************************************/
20 #ifndef ALIHLTPHOSONLINEDISPLAYEVENTTAB_H
21 #define ALIHLTPHOSONLINEDISPLAYEVENTTAB_H
24 // #include <TRootEmbeddedCanvas.h>
25 #include "AliHLTPHOSOnlineDisplayTab.h"
26 // #include <TCanvas.h>
29 // #include "AliHLTPHOSOnlineDisplayTH2D.h"
30 #include "AliHLTPHOSConstants.h"
35 using namespace PhosHLTConst;
38 class TRootEmbeddedCanvas;
42 class AliHLTPHOSOnlineDisplayTH2D;
43 class AliHLTPHOSGetEventButton;
44 class AliHLTHOMERReader;
45 class AliHLTPHOSRcuCellEnergyDataStruct;
46 class AliHLTPHOSOnlineDisplay;
47 //class AliHLTPHOSSharedMemoryInterface;
48 class AliHLTPHOSSharedMemoryInterfacev2;
51 class AliHLTPHOSOnlineDisplayEventTab : public AliHLTPHOSOnlineDisplayTab
55 virtual ~AliHLTPHOSOnlineDisplayEventTab();
58 AliHLTPHOSOnlineDisplayEventTab(AliHLTPHOSOnlineDisplay * onlineDisplayPtr, TGTab *tabPtr,
59 AliHLTHOMERReader * homerSyncPtr,
60 AliHLTHOMERReader * homerPtrs[MAXHOSTS],
61 int nHosts, int runnumber = -1);
62 // AliHLTPHOSOnlineDisplayEventTab(AliHLTPHOSOnlineDisplay *onlineDisplayPtr, TGTab *tabPtr,
63 // AliHLTHOMERReader *fgHomerReaderPtr,
64 // AliHLTHOMERReader *fgHomerReadersPtr[MAXHOSTS],
65 // int nHosts, const int runnumber = -1);
73 void SetRunNumber(const int runnumber)
76 fRunNumber = runnumber ;
77 cout << __FILE__ <<":"<< __LINE__ << "RunNumber was set to "<< fRunNumber <<endl; ;
81 Int_t GetRawData(TH1D *histPtr, int x, int z, int gain);
84 virtual void ReadBlockData(AliHLTHOMERReader *homeReaderPtr);
85 void FindFourierBlocks(AliHLTHOMERReader *homeReaderPtr) const;
90 TRootEmbeddedCanvas *fEc1, *fEc2, *fEc3, *fEc4, *fEc5, *fEc6;
91 TGCompositeFrame *fSubF1, *fSubF2, *fSubF3;
92 TCanvas *fgCanvasPtr[NGAINS];
93 AliHLTPHOSOnlineDisplayTH2D *fgLegoPlotPtr[NGAINS];
94 int *fChannelData[NMODULES][NXRCUCOORD][NZRCUCOORD][NXCOLUMNSRCU][NZROWSRCU][NGAINS];
95 Int_t fNChannelSamples[NMODULES][NXRCUCOORD][NZRCUCOORD][NXCOLUMNSRCU][NZROWSRCU][NGAINS];
96 Int_t fChannelEnergy[NMODULES][NXRCUCOORD][NZRCUCOORD][NXCOLUMNSRCU][NZROWSRCU][NGAINS];
99 // Bool_t fgAccumulate;
102 AliHLTPHOSOnlineDisplayEventTab();
104 void ChannelId2Coordinates(const UShort_t chid) const ;
106 AliHLTPHOSGetEventButton* fgEventButtPtr;
107 void InitDisplay(TGTab *tabPtr){};
108 void InitDisplay(TGTab * tabPtr, int runnumber);
109 AliHLTPHOSOnlineDisplay *fOnlineDisplayPtr;
110 // AliHLTPHOSSharedMemoryInterface *fShmPtr;
111 AliHLTPHOSSharedMemoryInterfacev2 *fShmPtr;
112 // AliHLTPHOSOnlineDisplayEventTab(const AliHLTPHOSOnlineDisplayEventTab& v);
113 // AliHLTPHOSOnlineDisplayEventTab & operator=(const AliHLTPHOSOnlineDisplayEventTab v){}