]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/hough/AliL3HistogramAdaptive.h
Introduction of the online monitoring code into the alimdc package. Fixed some memory...
[u/mrichter/AliRoot.git] / HLT / hough / AliL3HistogramAdaptive.h
1 // @(#) $Id$
2
3 #ifndef ALIL3HISTOGRAMADAPTIVE_H
4 #define ALIL3HISTOGRAMADAPTIVE_H
5
6 #include "AliL3RootTypes.h"
7 #include "AliL3Histogram.h"
8
9 class AliL3HistogramAdaptive : public AliL3Histogram {
10   
11  public:
12   AliL3HistogramAdaptive();
13   AliL3HistogramAdaptive(Char_t *name,Double_t minpt,Double_t maxpt,Double_t ptres,
14                          Int_t nybins,Double_t ymin,Double_t ymax);
15   ~AliL3HistogramAdaptive();
16
17   void Fill(Double_t x,Double_t y,Int_t weight=1);
18   Int_t FindBin(Double_t x,Double_t y) const;
19   Int_t FindXbin(Double_t x) const;
20   Int_t FindYbin(Double_t x) const;
21   void Draw(Char_t *option = "hist");
22   void Print() const;
23
24   Double_t GetBinCenterX(Int_t xbin) const;
25   Double_t GetBinCenterY(Int_t ybin) const;
26
27  private:
28   Double_t fPtres;//The desired Pt resolution
29   Double_t fMinPt;//Minimum Pt
30   Double_t fMaxPt;//Maximum Pt
31   Double_t *fKappaBins; //!
32   
33   Int_t InitKappaBins();
34   
35   ClassDef(AliL3HistogramAdaptive,1) //2D histogram class
36     
37 };
38
39 #endif