22#include "HistSparse1D.hh"
43 TH1Set(
const char* name,
const char* title);
46 const HistSparse& GetHistSparse1D()
const {
return data;}
48 Int_t Fill(
const char*, Double_t)
override {
return 0;}
49 Int_t Fill(Double_t x)
override {
return this->Fill(x,1.0);}
50 Int_t Fill(Double_t x, Double_t w)
override;
51 void DoFillN(Int_t ntimes,
const Double_t* x,
const Double_t* w, Int_t stride=1)
override;
53 Int_t AddNewBin(
long long int x);
56 Bool_t Add(TF1*, Double_t, Option_t*)
override {
return false;}
57 Bool_t Add(
const TH1*,
const TH1*, Double_t, Double_t)
override {
return false;}
59 Bool_t Add(
const TH1*, Double_t)
override;
61 Double_t GetBinContentByAbscissa(
long long int x)
const;
62 Double_t GetBinErrorByAbscissa(
long long int x)
const;
63 void SetBinContentByAbscissa(
long long int x, Double_t newValue);
64 void SetBinErrorByAbscissa(
long long int x, Double_t newError);
67 std::map<long long int, Int_t> abscissaToBinIndex;
Sparse 1D histogram based on a map.
TH1D but with a category axis.