]>
Commit | Line | Data |
---|---|---|
3e87ef69 | 1 | // @(#) $Id$ |
2 | ||
bd2f8772 | 3 | #ifndef ALIL3HISTOGRAMADAPTIVE_H |
4 | #define ALIL3HISTOGRAMADAPTIVE_H | |
6b88e8ee | 5 | |
6b88e8ee | 6 | #include "AliL3RootTypes.h" |
7 | #include "AliL3Histogram.h" | |
8 | ||
9 | class AliL3HistogramAdaptive : public AliL3Histogram { | |
10 | ||
6b88e8ee | 11 | public: |
12 | AliL3HistogramAdaptive(); | |
6b9816d6 | 13 | AliL3HistogramAdaptive(Char_t *name,Double_t minpt,Double_t maxpt,Double_t ptres, |
6b88e8ee | 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); | |
298edb8a | 18 | void Fill(Double_t x,Int_t ybin,Int_t weight=1) { |
19 | AliL3Histogram::Fill(x,ybin,weight); | |
20 | } | |
21 | void Fill(Int_t xbin,Double_t y,Int_t weight=1) { | |
22 | AliL3Histogram::Fill(xbin,y,weight); | |
23 | } | |
24 | void Fill(Int_t xbin,Int_t ybin,Int_t weight=1) { | |
25 | AliL3Histogram::Fill(xbin,ybin,weight); | |
26 | } | |
1f1942b8 | 27 | Int_t FindBin(Double_t x,Double_t y) const; |
28 | Int_t FindXbin(Double_t x) const; | |
29 | Int_t FindYbin(Double_t x) const; | |
6b88e8ee | 30 | void Draw(Char_t *option = "hist"); |
bd2f8772 | 31 | void Print() const; |
6b88e8ee | 32 | |
1f1942b8 | 33 | Double_t GetBinCenterX(Int_t xbin) const; |
34 | Double_t GetBinCenterY(Int_t ybin) const; | |
0a86fbb7 | 35 | |
bd2f8772 | 36 | private: |
37 | Double_t fPtres;//The desired Pt resolution | |
38 | Double_t fMinPt;//Minimum Pt | |
39 | Double_t fMaxPt;//Maximum Pt | |
40 | Double_t *fKappaBins; //! | |
41 | ||
42 | Int_t InitKappaBins(); | |
43 | ||
6b88e8ee | 44 | ClassDef(AliL3HistogramAdaptive,1) //2D histogram class |
45 | ||
46 | }; | |
47 | ||
48 | #endif |