2 // $Id: AliHLTEMCALOnlineDisplayTH2D.h 31490 2009-03-15 16:27:11Z odjuvsla $
4 #ifndef ALIHLTEMCALONLINEDISPLAYTH2D_H
5 #define ALIHLTEMCALONLINEDISPLAYTH2D_H
7 /**************************************************************************
8 * This file is property of and copyright by the Experimental Nuclear *
9 * Physics Group, Dep. of Physics *
10 * University of Oslo, Norway, 2007 *
12 * Author: Per Thomas Hille <perthi@fys.uio.no> for the ALICE HLT Project.*
13 * Contributors are mentioned in the code where appropriate. *
14 * Please report bugs to perthi@fys.uio.no *
16 * Permission to use, copy, modify and distribute this software and its *
17 * documentation strictly for non-commercial purposes is hereby granted *
18 * without fee, provided that the above copyright notice appears in all *
19 * copies and that both the copyright notice and this permission notice *
20 * appear in the supporting documentation. The authors make no claims *
21 * about the suitability of this software for any purpose. It is *
22 * provided "as is" without express or implied warranty. *
23 **************************************************************************/
27 #define NHISTOGRAMS ZROWS*XCOLS +4
33 //#include "AliHLTEMCALBase.h"
34 //#include "AliHLTEMCALOnlineDisplayTH2D.h"
36 //#include "AliHLTCaloConstants.h"
37 //#include "AliHLTEMCALConstants.h"
39 #include "AliHLTCaloConstants.h"
41 //using namespace EmcalHLTConst;
42 //using namespace CaloHLTConst;
49 class AliHLTEMCALOnlineDisplay;
51 //class AliHLTEMCALOnlineDisplayTH2D : public TH2D, public AliHLTEMCALBase
52 class AliHLTEMCALOnlineDisplayTH2D : public TH2D
55 AliHLTEMCALOnlineDisplayTH2D(AliHLTEMCALOnlineDisplay *onlineDisplayPtr, const char* name, const char* title, Int_t nbinsx, Double_t xlow, Double_t xup,
56 Int_t nbinsy, Double_t ylow, Double_t yup);
58 virtual ~AliHLTEMCALOnlineDisplayTH2D();
59 virtual void ExecuteEvent(Int_t event, Int_t pz, Int_t px);
61 void SetRunNumber(const int runnumber)
63 fRunNumber = runnumber;
64 cout << __FILE__ <<":"<< __LINE__ << "RunNumber was set to "<< fRunNumber <<endl; ;
67 // int GetZBin(Int_t pz);
68 // int GetXBin(Int_t px);
70 void EvaluateBinPosition(const char *info, int *z, int *x);
74 AliHLTEMCALOnlineDisplayTH2D();
75 AliHLTEMCALOnlineDisplay *fOnlineDisplayPtr;
76 TCanvas *fgRawDataCanvasPtr[NGAINS];
77 TH1D *fgRawDataPlotsPtr[NHISTOGRAMS][NGAINS];
78 TCanvas *fgRawDataCanvasSinglePtr[NGAINS];
79 TH1D *fgRawDataPlotsSinglePtr[NGAINS];
83 // bool fIsSetRunNumber;