]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fixing coding violations
authorodjuvsla <odjuvsla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Mar 2009 21:17:03 +0000 (21:17 +0000)
committerodjuvsla <odjuvsla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Mar 2009 21:17:03 +0000 (21:17 +0000)
HLT/PHOS/AliHLTPHOSDigitMaker.cxx
HLT/PHOS/OnlineDisplay/AliHLTPHOSOnlineDisplayCalibTab.cxx
HLT/PHOS/OnlineDisplay/AliHLTPHOSOnlineDisplayCalibTab.h
HLT/PHOS/OnlineDisplay/AliHLTPHOSOnlineDisplayEventTab.cxx
HLT/PHOS/OnlineDisplay/AliHLTPHOSOnlineDisplayEventTab.h
HLT/PHOS/OnlineDisplay/AliHLTPHOSOnlineDisplayFourierTab.cxx
HLT/PHOS/OnlineDisplay/AliHLTPHOSOnlineDisplayFourierTab.h
HLT/PHOS/OnlineDisplay/AliHLTPHOSOnlineDisplayTab.h

index d7030f10cda4a0647d9314a1c7664a2a5892ea38..0d36b41183b4b7cd93910a7f1122341fcd1a254c 100644 (file)
@@ -5,7 +5,7 @@
  * 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   *
index bfcd6ecdf9a6f9cd398de383e21332a8034c3850..9c829d45e071eddae5643f5fa2ce6e8c1383a696 100644 (file)
@@ -1,23 +1,46 @@
 // $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;
@@ -37,13 +60,14 @@ AliHLTPHOSOnlineDisplayCalibTab::AliHLTPHOSOnlineDisplayCalibTab(TGTab  *tabPtr,
 
 AliHLTPHOSOnlineDisplayCalibTab::~AliHLTPHOSOnlineDisplayCalibTab()
 {
-
+  // See header file for documentation
 
 }
 
 void
 AliHLTPHOSOnlineDisplayCalibTab::ReadBlockData(HOMERReader *homerReaderPtr)
 {
+  // See header file for documentation
   //  gStyle->SetOptLogy();
   //  gStyle->SetOptStat(true);
 
@@ -108,6 +132,7 @@ AliHLTPHOSOnlineDisplayCalibTab::ReadBlockData(HOMERReader *homerReaderPtr)
 int 
 AliHLTPHOSOnlineDisplayCalibTab::GetNextEvent()
 {
+  // See header file for documentation
   ResetDisplay();
   DoGetNextEvent();
   UpdateDisplay();
@@ -115,14 +140,15 @@ AliHLTPHOSOnlineDisplayCalibTab::GetNextEvent()
 }
 
 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); 
 
@@ -265,6 +291,7 @@ AliHLTPHOSOnlineDisplayCalibTab::InitDisplay(TGTab *tabPtr)
 void 
 AliHLTPHOSOnlineDisplayCalibTab::UpdateDisplay()
 {
+  // See header file for documentation
   // gStyle->SetOptLogy();
   //  gStyle->SetOptStat(true);
  
index 73a7c53e9191e68a484a8472a9109010ff0a619e..a85d3bb9e03d7199fd0d0c3a44a0a3c753b24299 100644 (file)
@@ -1,51 +1,76 @@
 //-*- 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
+
 };
 
 
index 6c2d778988b99c0bc722516123a268c25e752d9b..b3a86f1ddf877178ff9462448e26105ec23fb303 100644 (file)
@@ -37,6 +37,8 @@ using namespace std;
 
 // MT Crap
 #include <TMath.h>
+#include "AliHLTPHOSOnlineDisplayTH2D.h"
+
 //#include <TEveManager.h>
 //#include <TEveBoxSet.h>
 
@@ -48,9 +50,9 @@ AliHLTPHOSOnlineDisplayEventTab::AliHLTPHOSOnlineDisplayEventTab()
 }
 
 
-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
   /*
@@ -98,7 +100,7 @@ AliHLTPHOSOnlineDisplayEventTab::AliHLTPHOSOnlineDisplayEventTab(AliHLTPHOSOnlin
        fgHomerReadersPtr[i] = 0;
     }
 
-  fgHomerReaderPtr = homerSyncPtr;
+  fgHomerReaderPtr = const_cast<AliHLTHOMERReader*>(homerSyncPtr);
   
   for(int i=0; i<nHosts; i++)
     {
@@ -298,7 +300,7 @@ AliHLTPHOSOnlineDisplayEventTab::ResetDisplay()
 
 
 void
-AliHLTPHOSOnlineDisplayEventTab::InitDisplay(const TGTab  * const tabPtr, const int runnumber)
+AliHLTPHOSOnlineDisplayEventTab::InitDisplay(TGTab  * tabPtr, int runnumber)
 {
   //  gStyle->SetOptLogy();
   ///  gStyle->SetOptStat(true);
@@ -327,7 +329,7 @@ AliHLTPHOSOnlineDisplayEventTab::InitDisplay(const TGTab  * const tabPtr, const
   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);
index 9d1cf630cf57dc72133ce91c323ec5e3bb427a89..a59a5ea71702f5017d93a52521a1ad154c370efe 100644 (file)
 
 //#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;
@@ -54,11 +52,16 @@ class AliHLTPHOSOnlineDisplayEventTab : public AliHLTPHOSOnlineDisplayTab
  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);
     //    {
 
  
@@ -78,7 +81,7 @@ class AliHLTPHOSOnlineDisplayEventTab : public AliHLTPHOSOnlineDisplayTab
   void UpdateDisplay();
   int GetNextEvent();
   virtual void ReadBlockData(AliHLTHOMERReader *homeReaderPtr);
-  void FindFourierBlocks(AliHLTHOMERReader *homeReaderPtr);
+  void FindFourierBlocks(AliHLTHOMERReader *homeReaderPtr) const;
 
   void ResetDisplay();
   TGTab               *fTab;
@@ -97,14 +100,13 @@ class AliHLTPHOSOnlineDisplayEventTab : public AliHLTPHOSOnlineDisplayTab
  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
index e707392904567ae2845bfe66caa23a375d1d84fe..013f28437d3719d22ce1e9815ef7deb0e5eaace2 100644 (file)
@@ -1,5 +1,21 @@
 // $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"
@@ -15,7 +31,7 @@
 #include "AliHLTPHOSOnlineDisplay.h"
 #include "AliHLTPHOSSharedMemoryInterface.h"
 #include "AliHLTPHOSFourier.h"
-
+#include "AliHLTPHOSOnlineDisplayTH2D.h"
 
 
 #include "AliHLTPHOSRcuFFTDataStruct.h"
@@ -34,14 +50,15 @@ using namespace std;
 
 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);
   
@@ -62,11 +79,11 @@ AliHLTPHOSOnlineDisplayFourierTab::AliHLTPHOSOnlineDisplayFourierTab(AliHLTPHOSO
        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]);
 
     }
 
@@ -76,8 +93,9 @@ AliHLTPHOSOnlineDisplayFourierTab::AliHLTPHOSOnlineDisplayFourierTab(AliHLTPHOSO
 
 
 AliHLTPHOSOnlineDisplayFourierTab::~AliHLTPHOSOnlineDisplayFourierTab()
-{
 
+{
+  // See header file for documentation
 }
 
 
@@ -85,6 +103,7 @@ AliHLTPHOSOnlineDisplayFourierTab::~AliHLTPHOSOnlineDisplayFourierTab()
 int
 AliHLTPHOSOnlineDisplayFourierTab::GetNextEvent()
 {
+  // See header file for documentation
   //  ResetDisplay();
   DoGetNextEvent();
   //  FillHistograms();
@@ -98,9 +117,9 @@ AliHLTPHOSOnlineDisplayFourierTab::GetNextEvent()
 
 
 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 );
@@ -166,6 +185,7 @@ AliHLTPHOSOnlineDisplayFourierTab::ReadBlockData(AliHLTHOMERReader *homeReaderPt
 void 
 AliHLTPHOSOnlineDisplayFourierTab::FillHistograms(const AliHLTPHOSRcuFFTDataStruct psd, const int size)
 {
+  // See header file for documentation
   //  gStyle->SetOptLogy();
   //  gStyle->SetOptStat(false);
 
@@ -228,6 +248,7 @@ AliHLTPHOSOnlineDisplayFourierTab::FillHistograms(const AliHLTPHOSRcuFFTDataStru
 void
 AliHLTPHOSOnlineDisplayFourierTab::InitDisplay(TGTab  *tabPtr)
 {
+  // See header file for documentatino
   for(int gain=0; gain < NGAINS; gain++)
     {
       char gainLabel[100];
@@ -289,6 +310,7 @@ AliHLTPHOSOnlineDisplayFourierTab::InitDisplay(TGTab  *tabPtr)
 void
 AliHLTPHOSOnlineDisplayFourierTab::UpdateDisplay()
 {
+  // See header file for documentation
   if( fFourierHistoNew[HIGHGAIN])
     {
       fgCanvasPtr[HIGHGAIN] =  fEc1->GetCanvas();
@@ -354,6 +376,7 @@ AliHLTPHOSOnlineDisplayFourierTab::UpdateDisplay()
 const  char* 
 AliHLTPHOSOnlineDisplayFourierTab::Gain2Text(const int gain, const char delimeter)
 {
+  // See header file for documentation
   if(gain ==  LOWGAIN)
     {
       sprintf(fGainText, "low%cgain", delimeter);
index 67cc3e7812a6660ecfd38ce5b7e02364645e9f30..d533aa8088afb31fd1c79633409029816aa5f94f 100644 (file)
@@ -1,6 +1,22 @@
 //-*- 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;
@@ -30,27 +54,27 @@ class AliHLTPHOSFourier;
 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];
@@ -59,24 +83,29 @@ class AliHLTPHOSOnlineDisplayFourierTab : public AliHLTPHOSOnlineDisplayTab
   //  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;
 };
 
 
index 5186f850753ec72b4b4ff06c4fbf74612eefa153..089deef033c07a576ee16e1331d5349669d7f4c3 100644 (file)
@@ -30,11 +30,11 @@ class AliHLTPHOSOnlineDisplayTab : public TGTab, public AliHLTPHOSBase
  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) 
   {
@@ -45,6 +45,7 @@ class AliHLTPHOSOnlineDisplayTab : public TGTab, public AliHLTPHOSBase
   
 
 
+
  protected:
   Bool_t fgAccumulate;
   Bool_t fgSyncronize;
@@ -55,6 +56,10 @@ class AliHLTPHOSOnlineDisplayTab : public TGTab, public AliHLTPHOSBase
   int fgNHosts;
 
   int fRunNumber;
+
+
+
+
 };