The coming release of Root 2.00/12 includes a new function
to rebin a 1-D histogram:
- New function TH1::Rebin(Int_t ngroup, const char*newname)
to rebin 1-D histograms.
This function replaces the existing histogram if newname="" (default).
It returns a new histogram otherwise.
ngroup is the number of bins to be merged into one new bin.
If the original histogram has errors stored (via Sumw2), the resulting
histograms has new errors correctly calculated.
Rene Brun