]>
Commit | Line | Data |
---|---|---|
3e87ef69 | 1 | // @(#) $Id$ |
2 | ||
bd2f8772 | 3 | #ifndef ALIL3HISTOGRAMADAPTIVE_H |
4 | #define ALIL3HISTOGRAMADAPTIVE_H | |
6b88e8ee | 5 | |
4aa41877 | 6 | #include "AliHLTRootTypes.h" |
7 | #include "AliHLTHistogram.h" | |
6b88e8ee | 8 | |
4aa41877 | 9 | class AliHLTHistogramAdaptive : public AliHLTHistogram { |
6b88e8ee | 10 | |
6b88e8ee | 11 | public: |
4aa41877 | 12 | AliHLTHistogramAdaptive(); |
13 | AliHLTHistogramAdaptive(Char_t *name,Double_t minpt,Double_t maxpt,Double_t ptres, | |
6b88e8ee | 14 | Int_t nybins,Double_t ymin,Double_t ymax); |
4aa41877 | 15 | ~AliHLTHistogramAdaptive(); |
6b88e8ee | 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) { |
4aa41877 | 19 | AliHLTHistogram::Fill(x,ybin,weight); |
298edb8a | 20 | } |
21 | void Fill(Int_t xbin,Double_t y,Int_t weight=1) { | |
4aa41877 | 22 | AliHLTHistogram::Fill(xbin,y,weight); |
298edb8a | 23 | } |
24 | void Fill(Int_t xbin,Int_t ybin,Int_t weight=1) { | |
4aa41877 | 25 | AliHLTHistogram::Fill(xbin,ybin,weight); |
298edb8a | 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 | ||
4aa41877 | 44 | ClassDef(AliHLTHistogramAdaptive,1) //2D histogram class |
6b88e8ee | 45 | |
46 | }; | |
47 | ||
4aa41877 | 48 | typedef AliHLTHistogramAdaptive AliL3HistogramAdaptive; // for backward comaatibility |
49 | ||
6b88e8ee | 50 | #endif |