32 FastHist(TString name =
"", TString title =
"");
33 void SetXaxisName(TString name) { fAxisNameX = name; }
34 void SetYaxisName(TString name) { fAxisNameY = name; }
35 void SetZaxisName(TString name) { fAxisNameZ = name; }
36 Int_t GetNbinsX()
const {
return fBinsNoX; };
37 Int_t GetNbinsY()
const {
return fBinsNoY; };
38 Int_t GetNbinsZ()
const {
return fBinsNoZ; };
39 virtual Int_t FindBin(Double_t )
const {
return 0; };
40 virtual Int_t FindBin(Double_t , Double_t )
const {
return 0; };
41 virtual Int_t FindBin(Double_t , Double_t , Double_t )
const {
return 0; };
42 virtual Double_t GetBinContent(Int_t )
const {
return 0; };
43 virtual Double_t GetBinContent(Int_t , Int_t )
const {
return 0; };
44 virtual Double_t GetBinContent(Int_t , Int_t , Int_t )
const {
return 0; };
45 virtual void Fill(Double_t , Double_t ) {};
46 virtual void Fill(Double_t , Double_t , Double_t ) {};
47 virtual void Fill(Double_t , Double_t , Double_t , Double_t ) {};
48 inline void SetRawBinContent(Int_t bin, Double_t w) { fValues[bin] = w; };
49 inline Double_t GetRawBinContent(Int_t bin)
const {
return fValues[bin]; }
50 inline void IncrementRawBinContent(Int_t bin, Double_t w) { fValues[bin] += w; };
51 virtual TH1* GetTH1()
const {
return nullptr; };
61 FastHist1D(TString name =
"", TString title =
"", Int_t nbins = 0, Double_t min = 0, Double_t max = 0);
62 Int_t FindBin(Double_t x)
const;
63 Double_t GetBinCenterX(Int_t bin)
const {
return fMinX + (-0.5 + bin) * fStepX; }
64 Double_t GetBinWidthX()
const {
return 1.0 / fStepX; }
65 void Fill(Double_t x, Double_t w);
66 Double_t GetBinContent(Int_t i)
const {
return fValues[i]; }
67 virtual TH1* GetTH1()
const;
89 Double_t GetBinContent(Int_t i, Int_t j)
const;
90 Int_t FindBin(Double_t x, Double_t y)
const;
91 Double_t GetBinCenterX(Int_t bin)
const {
return fMinX + (-0.5 + bin) * fStepX; }
92 Double_t GetBinWidthX()
const {
return 1.0 / fStepX; }
93 Double_t GetBinCenterY(Int_t bin)
const {
return fMinY + (-0.5 + bin) * fStepY; }
94 Double_t GetBinWidthY()
const {
return 1.0 / fStepY; }
95 void Fill(Double_t x, Double_t y, Double_t w);
96 virtual TH1* GetTH1()
const;
125 void Fill(Double_t x, Double_t y, Double_t z, Double_t w);
126 Int_t FindBin(Double_t x, Double_t y, Double_t z)
const;
127 Double_t GetBinContent(Int_t i, Int_t j, Int_t k)
const;
128 Double_t GetBinCenterX(Int_t bin)
const {
return fMinX + (-0.5 + bin) * fStepX; }
129 Double_t GetBinWidthX()
const {
return 1.0 / fStepX; }
130 Double_t GetBinCenterY(Int_t bin)
const {
return fMinY + (-0.5 + bin) * fStepY; }
131 Double_t GetBinWidthY()
const {
return 1.0 / fStepY; }
132 Double_t GetBinCenterZ(Int_t bin)
const {
return fMinZ + (-0.5 + bin) * fStepZ; }
133 Double_t GetBinWidthZ()
const {
return 1.0 / fStepZ; }
134 virtual TH1* GetTH1()
const;