* All rights reserved. *
* *
* Primary Authors: Oystein Djuvsland *
- s* *
+ * *
* Permission to use, copy, modify and distribute this software and its *
* documentation strictly for non-commercial purposes is hereby granted *
* without fee, provided that the above copyright notice appears in all *
// $Id$
+/**************************************************************************
+ * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
+ * *
+ * Authors: Per Thomas Hille for the ALICE *
+ * offline/HLT Project. Contributors are mentioned in the code where *
+ * appropriate. *
+ * *
+ * Permission to use, copy, modify and distribute this software and its *
+ * documentation strictly for non-commercial purposes is hereby granted *
+ * without fee, provided that the above copyright notice appears in all *
+ * copies and that both the copyright notice and this permission notice *
+ * appear in the supporting documentation. The authors make no claims *
+ * about the suitability of this software for any purpose. It is *
+ * provided "as is" without express or implied warranty. *
+ **************************************************************************/
+
#include "AliHLTPHOSOnlineDisplayCalibTab.h"
#include <iostream>
#include "AliHLTPHOSRcuCellAccumulatedEnergyDataStruct.h"
#include "AliHLTPHOSGetEventButton.h"
+#include "TRootEmbeddedCanvas.h"
+#include "TH2D.h"
+#include "TH2I.h"
+#include "TCanvas.h"
+#include "AliHLTPHOSGetEventButton.h"
+
//#include "TStyle.h"
using namespace std;
-
AliHLTPHOSOnlineDisplayCalibTab::AliHLTPHOSOnlineDisplayCalibTab()
{
+ // See header file for documentation
cout << "AliHLTPHOSOnlineDisplayCalibTab:ERROR: You cannot create a onlinedisplay Tab without arguments" << endl;
}
AliHLTPHOSOnlineDisplayCalibTab::AliHLTPHOSOnlineDisplayCalibTab(TGTab *tabPtr, HOMERReader *homerSyncPtr, HOMERReader *homerPtrs[MAXHOSTS], int nHosts)
{
+ // See header file for documentation
for(int i=0; i<MAXHOSTS; i++)
{
fgHomerReadersPtr[i] = 0;
AliHLTPHOSOnlineDisplayCalibTab::~AliHLTPHOSOnlineDisplayCalibTab()
{
-
+ // See header file for documentation
}
void
AliHLTPHOSOnlineDisplayCalibTab::ReadBlockData(HOMERReader *homerReaderPtr)
{
+ // See header file for documentation
// gStyle->SetOptLogy();
// gStyle->SetOptStat(true);
int
AliHLTPHOSOnlineDisplayCalibTab::GetNextEvent()
{
+ // See header file for documentation
ResetDisplay();
DoGetNextEvent();
UpdateDisplay();
}
void
-AliHLTPHOSOnlineDisplayCalibTab::ResetDisplay()
+AliHLTPHOSOnlineDisplayCalibTab::ResetDisplay() const
{
-
+ // See header file for documentation
}
void
AliHLTPHOSOnlineDisplayCalibTab::InitDisplay(TGTab *tabPtr)
{
+ // See header file for documentation
// gStyle->SetOptLogy();
// gStyle->SetOptStat(true);
void
AliHLTPHOSOnlineDisplayCalibTab::UpdateDisplay()
{
+ // See header file for documentation
// gStyle->SetOptLogy();
// gStyle->SetOptStat(true);
//-*- Mode: C++ -*-
// $Id$
+/**************************************************************************
+ * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
+ * *
+ * Authors: Per Thomas Hille for the ALICE *
+ * offline/HLT Project. Contributors are mentioned in the code where *
+ * appropriate. *
+ * *
+ * Permission to use, copy, modify and distribute this software and its *
+ * documentation strictly for non-commercial purposes is hereby granted *
+ * without fee, provided that the above copyright notice appears in all *
+ * copies and that both the copyright notice and this permission notice *
+ * appear in the supporting documentation. The authors make no claims *
+ * about the suitability of this software for any purpose. It is *
+ * provided "as is" without express or implied warranty. *
+ **************************************************************************/
+
+
#ifndef ALIHLTPHOSONLINEDISPLAYCALIBTAB_H
#define ALIHLTPHOSONLINEDISPLAYCALIBTAB_H
-#include "TGTab.h"
-#include "AliHLTPHOSOnlineDisplayTab.h"
-#include "TH2.h"
#include "AliHLTPHOSCommonDefs.h"
-#include <TRootEmbeddedCanvas.h>
#include <TCanvas.h>
#include "AliHLTDataTypes.h"
-
-
+#include "AliHLTPHOSOnlineDisplayTab.h"
#include "AliHLTPHOSConstants.h"
+
using namespace PhosHLTConst;
+class TGTab;
+class TRootEmbeddedCanvas;
+class TH2D;
+class TH2I;
+class TCanvas;
class AliHLTPHOSGetEventButton;
+
class AliHLTPHOSOnlineDisplayCalibTab : public AliHLTPHOSOnlineDisplayTab
{
public:
- AliHLTPHOSOnlineDisplayCalibTab();
- AliHLTPHOSOnlineDisplayCalibTab(TGTab *tabPtr, HOMERReader *homerSyncPtr, HOMERReader *homerPtrs[MAXHOSTS], int nHosts);
- virtual ~AliHLTPHOSOnlineDisplayCalibTab();
-
- void InitDisplay(TGTab *tabPtr);
- void UpdateDisplay();
- int GetNextEvent();
- virtual void ReadBlockData(HOMERReader *homeReaderPtr);
- void ResetDisplay();
-
- TH2D *fgCalibHistPtr[NGAINS];
- TH2I *fgHitsHistPtr[NGAINS];
- TH2D *fgAveragePtr[NGAINS];
- TH2D *fgDCSViewPtr[NGAINS];
+ AliHLTPHOSOnlineDisplayCalibTab(); // Default Constructor
+ AliHLTPHOSOnlineDisplayCalibTab(TGTab *tabPtr, HOMERReader *homerSyncPtr, HOMERReader *homerPtrs[MAXHOSTS], int nHosts); // Constructor
+ virtual ~AliHLTPHOSOnlineDisplayCalibTab(); // Destructor
+
+ void InitDisplay(TGTab *tabPtr); // InitDisplay
+ void UpdateDisplay(); // UpdateDisplay
+ int GetNextEvent(); // GetNextEvent
+ virtual void ReadBlockData(HOMERReader *homeReaderPtr); // ReadBlockData
+ void ResetDisplay() const; // ResetDisplay
+
+ TH2D *fgCalibHistPtr[NGAINS]; // fgCalibHistPtr
+ TH2I *fgHitsHistPtr[NGAINS]; // fgHitsHistPtr
+ TH2D *fgAveragePtr[NGAINS]; // fgAveragePtr
+ TH2D *fgDCSViewPtr[NGAINS]; // fgDCSViewPtr
- TH2D *fDeadCannelMapPtr[NGAINS];
- TGTab *fTab;
- TRootEmbeddedCanvas *fEc7, *fEc8, *fEc9, *fEc10, *fEc11, *fEc12, *fEc13, *fEc14, *fEc15, *fEc16, *fEc17, *fEc18;
- TGTab *fSubTab2;
- TGCompositeFrame *fSubF4, *fSubF5, *fSubF6, *fSubF7,*fSubF8, *fSubF9;
- TCanvas *fgCanvasHGPtr;
- TCanvas *fgCanvasLGPtr;
- TH2D *fgLegoPlotLGPtr;
- TH2D *fgLegoPlotHGPtr;
- AliHLTPHOSGetEventButton* fgEventButtPtr;
+ TH2D *fDeadCannelMapPtr[NGAINS]; // fDeadCannelMapPtr
+ TGTab *fTab; // fTab
+ TRootEmbeddedCanvas *fEc7, *fEc8, *fEc9, *fEc10, *fEc11, *fEc12, *fEc13, *fEc14, *fEc15, *fEc16, *fEc17, *fEc18; // Canvases
+ TGTab *fSubTab2; // fSubTab2
+ TGCompositeFrame *fSubF4, *fSubF5, *fSubF6, *fSubF7,*fSubF8, *fSubF9; // Composite frames
+ TCanvas *fgCanvasHGPtr; // fgCanvasHGPtr
+ TCanvas *fgCanvasLGPtr; // fgCanvasLGPtr
+ TH2D *fgLegoPlotLGPtr; // fgLegoPlotLGPtr
+ TH2D *fgLegoPlotHGPtr; // fgLegoPlotHGPtr
+ AliHLTPHOSGetEventButton* fgEventButtPtr; // fgEventButtPtr
+
+private:
+
+ AliHLTPHOSOnlineDisplayCalibTab(const AliHLTPHOSOnlineDisplayCalibTab&); //copy constructor
+ AliHLTPHOSOnlineDisplayCalibTab & operator=(const AliHLTPHOSOnlineDisplayCalibTab); //assignement operator
+
};
// MT Crap
#include <TMath.h>
+#include "AliHLTPHOSOnlineDisplayTH2D.h"
+
//#include <TEveManager.h>
//#include <TEveBoxSet.h>
}
-AliHLTPHOSOnlineDisplayEventTab::AliHLTPHOSOnlineDisplayEventTab(AliHLTPHOSOnlineDisplay * const onlineDisplayPtr, TGTab *tabPtr,
- const AliHLTHOMERReader * const homerSyncPtr, AliHLTHOMERReader * const homerPtrs[MAXHOSTS],
- int nHosts, const int runnumber) : AliHLTPHOSOnlineDisplayTab()
+AliHLTPHOSOnlineDisplayEventTab::AliHLTPHOSOnlineDisplayEventTab(AliHLTPHOSOnlineDisplay * onlineDisplayPtr, TGTab *tabPtr,
+ AliHLTHOMERReader * homerSyncPtr, AliHLTHOMERReader * homerPtrs[MAXHOSTS],
+ int nHosts, int runnumber) : AliHLTPHOSOnlineDisplayTab()
{
//comment
/*
fgHomerReadersPtr[i] = 0;
}
- fgHomerReaderPtr = homerSyncPtr;
+ fgHomerReaderPtr = const_cast<AliHLTHOMERReader*>(homerSyncPtr);
for(int i=0; i<nHosts; i++)
{
void
-AliHLTPHOSOnlineDisplayEventTab::InitDisplay(const TGTab * const tabPtr, const int runnumber)
+AliHLTPHOSOnlineDisplayEventTab::InitDisplay(TGTab * tabPtr, int runnumber)
{
// gStyle->SetOptLogy();
/// gStyle->SetOptStat(true);
TGLayoutHints *fL1 = new TGLayoutHints(kLHintsBottom | kLHintsExpandX |
kLHintsExpandY, 2, 2, 15, 1);
- TGCompositeFrame *tf = tabPtr->AddTab("Event display");
+ TGCompositeFrame * tf = tabPtr->AddTab("Event display");
fSubTab1 = new TGTab(tf, 100, 100);
TGCompositeFrame *tf2 = fSubTab1->AddTab("LEGO");
fSubF1 = new TGCompositeFrame(tf2, 60, 20, kVerticalFrame);
//#include <TGTab.h>
// #include <TRootEmbeddedCanvas.h>
-// #include "AliHLTPHOSOnlineDisplayTab.h"
+#include "AliHLTPHOSOnlineDisplayTab.h"
// #include <TCanvas.h>
// #include <TH2D.h>
// #include <TH1D.h>
// #include "AliHLTPHOSOnlineDisplayTH2D.h"
-// #include "AliHLTPHOSConstants.h"
+#include "AliHLTPHOSConstants.h"
#define NZRCUCOORD 2
#define NXRCUCOORD 2
using namespace PhosHLTConst;
class TGTab;
-class TRootEmbeddedCanvas;p
-class AliHLTPHOSOnlineDisplayTab;
+class TRootEmbeddedCanvas;
class TCanvas;
class TH2D;
class TH1D;
class AliHLTPHOSOnlineDisplayTH2D;
-class AliHLTPHOSConstants;
class AliHLTPHOSGetEventButton;
class AliHLTHOMERReader;
class AliHLTPHOSRcuCellEnergyDataStruct;
public:
virtual ~AliHLTPHOSOnlineDisplayEventTab();
-
- AliHLTPHOSOnlineDisplayEventTab(AliHLTPHOSOnlineDisplay *onlineDisplayPtr, TGTab *tabPtr,
- AliHLTHOMERReader *fgHomerReaderPtr,
- AliHLTHOMERReader *fgHomerReadersPtr[MAXHOSTS],
- int nHosts, const int runnumber = -1);
+
+
+ AliHLTPHOSOnlineDisplayEventTab(AliHLTPHOSOnlineDisplay * onlineDisplayPtr, TGTab *tabPtr,
+ AliHLTHOMERReader * homerSyncPtr,
+ AliHLTHOMERReader * homerPtrs[MAXHOSTS],
+ int nHosts, int runnumber = -1);
+// AliHLTPHOSOnlineDisplayEventTab(AliHLTPHOSOnlineDisplay *onlineDisplayPtr, TGTab *tabPtr,
+// AliHLTHOMERReader *fgHomerReaderPtr,
+// AliHLTHOMERReader *fgHomerReadersPtr[MAXHOSTS],
+// int nHosts, const int runnumber = -1);
// {
void UpdateDisplay();
int GetNextEvent();
virtual void ReadBlockData(AliHLTHOMERReader *homeReaderPtr);
- void FindFourierBlocks(AliHLTHOMERReader *homeReaderPtr);
+ void FindFourierBlocks(AliHLTHOMERReader *homeReaderPtr) const;
void ResetDisplay();
TGTab *fTab;
private:
AliHLTPHOSOnlineDisplayEventTab();
AliHLTPHOSGetEventButton* fgEventButtPtr;
- void InitDisplay(TGTab *tabPtr) const {};
- void InitDisplay(const TGTab * const tabPtr, const int runnumber);
-
+ void InitDisplay(TGTab *tabPtr){};
+ void InitDisplay(TGTab * tabPtr, int runnumber);
AliHLTPHOSOnlineDisplay *fOnlineDisplayPtr;
AliHLTPHOSSharedMemoryInterface *fShmPtr;
- AliHLTPHOSOnlineDisplayEventTab(const AliHLTPHOSOnlineDisplayEventTab&);
- AliHLTPHOSOnlineDisplayEventTab & operator=(const AliHLTPHOSOnlineDisplayEventTab);
+// AliHLTPHOSOnlineDisplayEventTab(const AliHLTPHOSOnlineDisplayEventTab& v);
+// AliHLTPHOSOnlineDisplayEventTab & operator=(const AliHLTPHOSOnlineDisplayEventTab v){}
///int fEvent
// $Id$
+/**************************************************************************
+ * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
+ * *
+ * Authors: Per Thomas Hille for the ALICE *
+ * offline/HLT Project. Contributors are mentioned in the code where *
+ * appropriate. *
+ * *
+ * Permission to use, copy, modify and distribute this software and its *
+ * documentation strictly for non-commercial purposes is hereby granted *
+ * without fee, provided that the above copyright notice appears in all *
+ * copies and that both the copyright notice and this permission notice *
+ * appear in the supporting documentation. The authors make no claims *
+ * about the suitability of this software for any purpose. It is *
+ * provided "as is" without express or implied warranty. *
+ **************************************************************************/
+
#include "AliHLTPHOSOnlineDisplayFourierTab.h"
#include <iostream>
#include "TGFrame.h"
#include "AliHLTPHOSOnlineDisplay.h"
#include "AliHLTPHOSSharedMemoryInterface.h"
#include "AliHLTPHOSFourier.h"
-
+#include "AliHLTPHOSOnlineDisplayTH2D.h"
#include "AliHLTPHOSRcuFFTDataStruct.h"
AliHLTPHOSOnlineDisplayFourierTab::AliHLTPHOSOnlineDisplayFourierTab()
{
+ // See header file for documentation
cout << "ERROR: You cannot create a onlinedisplay Tab without arguments" << endl;
}
-AliHLTPHOSOnlineDisplayFourierTab::AliHLTPHOSOnlineDisplayFourierTab(AliHLTPHOSOnlineDisplay *onlineDisplayPtr, TGTab *tabPtr,
- AliHLTHOMERReader *homerSyncPtr, AliHLTHOMERReader *homerPtrs[MAXHOSTS], int nHosts) : AliHLTPHOSOnlineDisplayTab(), fEvtCnt(0)
+AliHLTPHOSOnlineDisplayFourierTab::AliHLTPHOSOnlineDisplayFourierTab(AliHLTPHOSOnlineDisplay * const onlineDisplayPtr, TGTab *tabPtr,
+ const AliHLTHOMERReader * homerSyncPtr, const AliHLTHOMERReader * const homerPtrs[MAXHOSTS], int nHosts) : AliHLTPHOSOnlineDisplayTab(), fEvtCnt(0)
{
-
+ // See header file for documentation
// gStyle->SetOptLogy();
// gStyle->SetOptStat(false);
fgHomerReadersPtr[i] = 0;
}
- fgHomerReaderPtr = homerSyncPtr;
+ fgHomerReaderPtr = const_cast<AliHLTHOMERReader*>(homerSyncPtr);
for(int i=0; i<nHosts; i++)
{
- fgHomerReadersPtr[i] = homerPtrs[i] ;
+ fgHomerReadersPtr[i] = const_cast<AliHLTHOMERReader*>(homerPtrs[i]);
}
AliHLTPHOSOnlineDisplayFourierTab::~AliHLTPHOSOnlineDisplayFourierTab()
-{
+{
+ // See header file for documentation
}
int
AliHLTPHOSOnlineDisplayFourierTab::GetNextEvent()
{
+ // See header file for documentation
// ResetDisplay();
DoGetNextEvent();
// FillHistograms();
void
-AliHLTPHOSOnlineDisplayFourierTab::ReadBlockData(AliHLTHOMERReader *homeReaderPtr)
-{
-
+AliHLTPHOSOnlineDisplayFourierTab::ReadBlockData(AliHLTHOMERReader * const homeReaderPtr)
+{
+ // See header file for documentation
AliHLTPHOSValidCellDataStruct *currentChannel =0;
cout << "AliHLTPHOSOnlineDisplayFourierTab::ReadBlockDat, Reading block data, therere are " << homeReaderPtr->GetBlockCnt() << " blocks " <<endl;
// unsigned long blk = homeReaderPtr->FindBlockNdx("RENELLEC","SOHP", 0xFFFFFFFF );
void
AliHLTPHOSOnlineDisplayFourierTab::FillHistograms(const AliHLTPHOSRcuFFTDataStruct psd, const int size)
{
+ // See header file for documentation
// gStyle->SetOptLogy();
// gStyle->SetOptStat(false);
void
AliHLTPHOSOnlineDisplayFourierTab::InitDisplay(TGTab *tabPtr)
{
+ // See header file for documentatino
for(int gain=0; gain < NGAINS; gain++)
{
char gainLabel[100];
void
AliHLTPHOSOnlineDisplayFourierTab::UpdateDisplay()
{
+ // See header file for documentation
if( fFourierHistoNew[HIGHGAIN])
{
fgCanvasPtr[HIGHGAIN] = fEc1->GetCanvas();
const char*
AliHLTPHOSOnlineDisplayFourierTab::Gain2Text(const int gain, const char delimeter)
{
+ // See header file for documentation
if(gain == LOWGAIN)
{
sprintf(fGainText, "low%cgain", delimeter);
//-*- Mode: C++ -*-
// $Id$
+/**************************************************************************
+ * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
+ * *
+ * Authors: Per Thomas Hille for the ALICE *
+ * offline/HLT Project. Contributors are mentioned in the code where *
+ * appropriate. *
+ * *
+ * Permission to use, copy, modify and distribute this software and its *
+ * documentation strictly for non-commercial purposes is hereby granted *
+ * without fee, provided that the above copyright notice appears in all *
+ * copies and that both the copyright notice and this permission notice *
+ * appear in the supporting documentation. The authors make no claims *
+ * about the suitability of this software for any purpose. It is *
+ * provided "as is" without express or implied warranty. *
+ **************************************************************************/
+
#ifndef ALIHLTPHOSONLINEDISPLAYFOURIERTAB_H
#define ALIHLTPHOSONLINEDISPLAYFOURIERTAB_H
#include <TRootEmbeddedCanvas.h>
#include "AliHLTPHOSOnlineDisplayTab.h"
-#include <TCanvas.h>
-#include <TH2D.h>
-#include <TH1D.h>
-#include "AliHLTPHOSOnlineDisplayTH2D.h"
-#include "AliHLTPHOSConstants.h"
-//#include "AliHLTPHOSFourier.h"
-#include "AliHLTPHOSRcuFFTDataStruct.h"
-#define N_ZRCU_COORD 2
-#define N_XRCU_COORD 2
+// #include <TCanvas.h>
+// #include <TH2D.h>
+// #include <TH1D.h>
+// #include "AliHLTPHOSOnlineDisplayTH2D.h"
+// #include "AliHLTPHOSConstants.h"
+// //#include "AliHLTPHOSFourier.h"
+// #include "AliHLTPHOSRcuFFTDataStruct.h"
+#define NZRCUCOORD 2
+#define NXRCUCOORD 2
using namespace PhosHLTConst;
+class TH1D;
+class TH2D;
+class TCanvas;
+class TRootEmbeddedCanvas;
+class TGTab;
+class AliHLTPHOSRcuFFTDataStruct;
+class AliHLTPHOSConstants;
+class AliHLTPHOSOnlineDisplayTH2D;
class AliHLTPHOSGetEventButton;
class AliHLTHOMERReader;
class AliHLTPHOSRcuCellEnergyDataStruct;
class AliHLTPHOSOnlineDisplayFourierTab : public AliHLTPHOSOnlineDisplayTab
{
public:
- virtual ~AliHLTPHOSOnlineDisplayFourierTab();
- AliHLTPHOSOnlineDisplayFourierTab(AliHLTPHOSOnlineDisplay *onlineDisplayPtr, TGTab *tabPtr, AliHLTHOMERReader *fgHomerReaderPtr, AliHLTHOMERReader *fgHomerReadersPtr[MAXHOSTS], int nHosts);
- Int_t GetRawData(TH1D *histPtr, int x, int z, int gain);
- void UpdateDisplay();
- int GetNextEvent();
- virtual void ReadBlockData(AliHLTHOMERReader *homeReaderPtr);
- void FindFourierBlocks(AliHLTHOMERReader *homeReaderPtr);
-
- void ResetDisplay();
- TGTab *fTab;
- TGTab *fSubTab1;
- TRootEmbeddedCanvas *fEc1, *fEc2, *fEc3, *fEc4, *fEc5, *fEc6;
+ virtual ~AliHLTPHOSOnlineDisplayFourierTab(); // destructor
+ AliHLTPHOSOnlineDisplayFourierTab(AliHLTPHOSOnlineDisplay * const onlineDisplayPtr, TGTab *tabPtr, const AliHLTHOMERReader * fgHomerReaderPtr, const AliHLTHOMERReader * const fgHomerReadersPtr[MAXHOSTS], int nHosts); // constructor
+ Int_t GetRawData(TH1D *histPtr, int x, int z, int gain); // GetRawData
+ void UpdateDisplay(); //UpdateDisplay
+ int GetNextEvent(); //GetNextEvent
+ virtual void ReadBlockData(AliHLTHOMERReader * const homeReaderPtr); //ReadBlockData
+ void FindFourierBlocks(AliHLTHOMERReader *homeReaderPtr);//FindFourierBlocks
+
+ void ResetDisplay(); //ResetDisplay
+ TGTab *fTab; //fTab
+ TGTab *fSubTab1; //fSubTab1
+ TRootEmbeddedCanvas *fEc1, *fEc2, *fEc3, *fEc4, *fEc5, *fEc6; //Canvases
// TRootEmbeddedCanvas *fEc1, *fEc2, *fEc3, *fEc4;
// TGCompositeFrame *fSubF1, *fSubF2;
- TGCompositeFrame *fSubF1, *fSubF2, *fSubF3;
- TCanvas *fgCanvasPtr[NGAINS];
- AliHLTPHOSOnlineDisplayTH2D *fgLegoPlotPtr[NGAINS];
+ TGCompositeFrame *fSubF1, *fSubF2, *fSubF3; //frames
+ TCanvas *fgCanvasPtr[NGAINS]; // canvas
+ AliHLTPHOSOnlineDisplayTH2D *fgLegoPlotPtr[NGAINS]; //legoplot
- TH1D *fFourierHistoNew[NGAINS];
- TH1D *fFourierHistoOld[NGAINS];
- TH1D *fFourierHistoAccumulated[NGAINS];
+ TH1D *fFourierHistoNew[NGAINS]; //histogram
+ TH1D *fFourierHistoOld[NGAINS]; //histogram
+ TH1D *fFourierHistoAccumulated[NGAINS]; //histogram
// TRootEmbeddedCanvas *fFourierHistoAccumulatedEC[NGAINS];
// TRootEmbeddedCanvas *fFourierHistoOldEC[NGAINS];
// int *fChannelData[NMODULES][NXRCUCOORD][NZRCUCOORD][NXCOLUMNSRCU][NZROWSRCU][NGAINS];
// Int_t fNChannelSamples[NMODULES][NXRCUCOORD][NZRCUCOORD][NXCOLUMNSRCU][NZROWSRCU][NGAINS];
// Int_t fChannelEnergy[NMODULES][NXRCUCOORD][NZRCUCOORD][NXCOLUMNSRCU][NZROWSRCU][NGAINS];
- const char* Gain2Text(const int gain, const char delimeter);
+ const char* Gain2Text(const int gain, const char delimeter); //gain2text
protected:
- Bool_t fgAccumulate;
+ Bool_t fgAccumulate; //fgAccumulate
private:
- void FillHistograms(const AliHLTPHOSRcuFFTDataStruct psd, const int size);
+ void FillHistograms(const AliHLTPHOSRcuFFTDataStruct psd, const int size); //FillHistograms
+
+ AliHLTPHOSOnlineDisplayFourierTab(); // default constructor
+ AliHLTPHOSGetEventButton* fgEventButtPtr; // fgEventButtPtr
+ void InitDisplay(TGTab *tabPtr); //InitDisplay
+ AliHLTPHOSOnlineDisplay *fOnlineDisplayPtr; //fOnlineDisplayPtr
+ AliHLTPHOSSharedMemoryInterface *fShmPtr; //fShmPtr
+
+ AliHLTPHOSFourier *fFourierPtr; //fFourierPtr
+ char fGainText[256]; //fGainText
+
+ unsigned long fEvtCnt; //fEvtCnt
- AliHLTPHOSOnlineDisplayFourierTab();
- AliHLTPHOSGetEventButton* fgEventButtPtr;
- void InitDisplay(TGTab *tabPtr);
- AliHLTPHOSOnlineDisplay *fOnlineDisplayPtr;
- AliHLTPHOSSharedMemoryInterface *fShmPtr;
+ AliHLTPHOSOnlineDisplayFourierTab(const AliHLTPHOSOnlineDisplayFourierTab&); //copy constructor
+ AliHLTPHOSOnlineDisplayFourierTab & operator=(const AliHLTPHOSOnlineDisplayFourierTab); //assignement operator
- AliHLTPHOSFourier *fFourierPtr;
- char fGainText[256];
- unsigned long fEvtCnt;
};
public:
virtual ~AliHLTPHOSOnlineDisplayTab();
AliHLTPHOSOnlineDisplayTab();
- virtual void InitDisplay(TGTab *tabPtr) = 0;
+
void PrintBlockInfo(AliHLTHOMERReader *homeReaderPtr, int i);
int GetEventInfo(AliHLTHOMERReader *homeReaderPtr, int i);
virtual void ReadBlockData(AliHLTHOMERReader *homeReaderPtr) = 0;
-
+ virtual void InitDisplay(TGTab *tabPtr) = 0;
void SetRunNumber(const int runnumber)
{
+
protected:
Bool_t fgAccumulate;
Bool_t fgSyncronize;
int fgNHosts;
int fRunNumber;
+
+
+
+
};