Re: Rebin

From: Edmond Offermann <edmondoffermann_at_yahoo.com>
Date: Mon, 26 Nov 2007 17:47:30 -0800 (PST)


Fill another histogram with 1 in every bin: TH1::Fill(x, 1.) . Rebin this histogram in the same way . Now divide your original rebinned histogram through this rebinned histogram.

Eddy

> Hi,
> I have a TH1D filled with TH1::Fill(x, 1./x)!
> At "high" x there is a low statistics and errors are big so I'd like
> to rebin
> the histo increasing the bin width progressively. Using
> TH1::Rebin(Int_t, const
> char*, const Double_t*) I can merge the bins as I like but the histo
> is no more
> "normalized" (there are steps each time the width increases)!
>
> Any idea on how to fix this issue?
>
> Bye...
>
>
Received on Tue Nov 27 2007 - 02:47:48 CET

This archive was generated by hypermail 2.2.0 : Tue Nov 27 2007 - 11:50:01 CET