Rebin a variable bin-width histogram.
This tutorial illustrates how to:
- create a variable bin-width histogram with a binning such that the population per bin is about the same.
- rebin a variable bin-width histogram into another one.
{
TH1F *
h =
new TH1F(
"h",
"test rebin", 100, -3, 3);
for (
Int_t i = 1; i <= 100; i++) {
continue;
k++;
}
}
}
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Class to manage histogram axis.
virtual Double_t GetBinLowEdge(Int_t bin) const
Return low edge of bin.
virtual Double_t GetBinWidth(Int_t bin) const
Return bin width.
1-D histogram with a float per channel (see TH1 documentation)
const double xbins[xbins_n]
- Date
- July 2016
- Author
- Rene Brun
Definition in file hist013_TH1_rebin.C.