3 #ifndef ALIL3HISTOGRAMADAPTIVE_H
4 #define ALIL3HISTOGRAMADAPTIVE_H
6 #include "AliHLTRootTypes.h"
7 #include "AliHLTHistogram.h"
9 class AliHLTHistogramAdaptive : public AliHLTHistogram {
12 AliHLTHistogramAdaptive();
13 AliHLTHistogramAdaptive(Char_t *name,Double_t minpt,Double_t maxpt,Double_t ptres,
14 Int_t nybins,Double_t ymin,Double_t ymax);
15 ~AliHLTHistogramAdaptive();
17 void Fill(Double_t x,Double_t y,Int_t weight=1);
18 void Fill(Double_t x,Int_t ybin,Int_t weight=1) {
19 AliHLTHistogram::Fill(x,ybin,weight);
21 void Fill(Int_t xbin,Double_t y,Int_t weight=1) {
22 AliHLTHistogram::Fill(xbin,y,weight);
24 void Fill(Int_t xbin,Int_t ybin,Int_t weight=1) {
25 AliHLTHistogram::Fill(xbin,ybin,weight);
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;
30 void Draw(Char_t *option = "hist");
33 Double_t GetBinCenterX(Int_t xbin) const;
34 Double_t GetBinCenterY(Int_t ybin) const;
37 Double_t fPtres;//The desired Pt resolution
38 Double_t fMinPt;//Minimum Pt
39 Double_t fMaxPt;//Maximum Pt
40 Double_t *fKappaBins; //!
42 Int_t InitKappaBins();
44 ClassDef(AliHLTHistogramAdaptive,1) //2D histogram class
48 typedef AliHLTHistogramAdaptive AliL3HistogramAdaptive; // for backward comaatibility