Bug fix: Fixing typo
[u/mrichter/AliRoot.git] / HLT / EMCAL / OnlineDisplay / AliHLTEMCALOnlineDisplayEventTab.h
CommitLineData
fcbe44bf 1
c6debaf4 2//-*- Mode: C++ -*-
3// $Id: AliHLTEMCALOnlineDisplayEventTab.h 35071 2009-09-29 05:26:09Z phille $
fcbe44bf 4
c6debaf4 5/**************************************************************************
6 * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
7 * *
8 * Authors: Per Thomas Hille for the ALICE *
9 * offline/HLT Project. Contributors are mentioned in the code where *
10 * appropriate. *
11 * *
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 **************************************************************************/
fcbe44bf 20
c6debaf4 21#ifndef ALIHLTEMCALONLINEDISPLAYEVENTTAB_H
22#define ALIHLTEMCALONLINEDISPLAYEVENTTAB_H
fcbe44bf 23
24
c6debaf4 25#include "AliHLTEMCALOnlineDisplayTab.h"
ed39b7c2 26#include "AliHLTCaloConstants.h"
c6debaf4 27#include "AliHLTEMCALMapper.h"
fcbe44bf 28
29
c6debaf4 30#define NZRCUCOORD 2
31#define NXRCUCOORD 2
fcbe44bf 32
33
ed39b7c2 34//using namespace EmcalHLTConst;
35using CALO::MAXHOSTS;
fcbe44bf 36
c6debaf4 37class TGTab;
38class TRootEmbeddedCanvas;
39class TCanvas;
40class TH2D;
41class TH1D;
42class AliHLTEMCALOnlineDisplayTH2D;
43class AliHLTEMCALGetEventButton;
44class AliHLTHOMERReader;
c6debaf4 45class AliHLTCaloRcuCellEnergyDataStruct;
c6debaf4 46class AliHLTEMCALOnlineDisplay;
44f5ade5 47class AliHLTEMCALSharedMemoryInterface;
c6debaf4 48class AliHLTCaloChannelRawDataStruct;
fcbe44bf 49
50
c6debaf4 51class AliHLTEMCALOnlineDisplayEventTab : public AliHLTEMCALOnlineDisplayTab
52{
53 public:
fcbe44bf 54
c6debaf4 55 virtual ~AliHLTEMCALOnlineDisplayEventTab();
fcbe44bf 56
57
c6debaf4 58 AliHLTEMCALOnlineDisplayEventTab(AliHLTEMCALOnlineDisplay * onlineDisplayPtr, TGTab *tabPtr,
59 AliHLTHOMERReader * homerSyncPtr,
60 AliHLTHOMERReader * homerPtrs[MAXHOSTS],
61 int nHosts, int runnumber = -1);
fcbe44bf 62
c6debaf4 63 Int_t GetRawData(TH1D *histPtr, int x, int z, int gain);
64
65 void UpdateDisplay();
66 int GetNextEvent();
67 virtual void ReadBlockData(AliHLTHOMERReader *homeReaderPtr);
68 void FindFourierBlocks(AliHLTHOMERReader *homeReaderPtr) const;
69
70 void ResetDisplay();
44f5ade5 71 TGTab *fTab; // Tab for onlinedisplay
c6debaf4 72 TGTab *fSubTab1;
44f5ade5 73 TRootEmbeddedCanvas *fEc1, *fEc2, *fEc3, *fEc4, *fEc5, *fEc6;// Embedded canvas for tower energies etc..
74 TGCompositeFrame *fSubF1, *fSubF2, *fSubF3; // comment
75 TCanvas *fgCanvasPtr[NGAINS]; // Comment
76 AliHLTEMCALOnlineDisplayTH2D *fgLegoPlotPtr[NGAINS]; // Legoplot with tower energies
77
78 int *fChannelData[NMODULES][NZROWSMOD][NXCOLUMNSMOD][NGAINS]; // Arrays to hold tower energies
79 Int_t fNChannelSamples[NMODULES][NZROWSMOD][NXCOLUMNSMOD][NGAINS]; // Arrays to holdrwa data
80 Int_t fChannelEnergy[NMODULES][NZROWSMOD][NXCOLUMNSMOD][NGAINS]; // Arrays to hold tower energies
fcbe44bf 81
c6debaf4 82 private:
44f5ade5 83 AliHLTEMCALOnlineDisplayEventTab (const AliHLTEMCALOnlineDisplayEventTab & );
ed39b7c2 84 AliHLTEMCALOnlineDisplayEventTab & operator = (const AliHLTEMCALOnlineDisplayEventTab &);
c6debaf4 85 AliHLTEMCALOnlineDisplayEventTab();
c6debaf4 86 void FillRawData(const AliHLTCaloChannelRawDataStruct &rawStr);
8c6eca17 87 AliHLTEMCALGetEventButton* fgEventButtPtr;
c6debaf4 88 void InitDisplay(TGTab *tabPtr){};
89 void InitDisplay(TGTab * tabPtr, int runnumber);
90 AliHLTEMCALOnlineDisplay *fOnlineDisplayPtr;
c6debaf4 91 AliHLTEMCALSharedMemoryInterface *fShmPtr;
8c6eca17 92
c6debaf4 93};
fcbe44bf 94
95
c6debaf4 96#endif