Rebin TH1 to have finer bins

Hi all,
I have a TH1 histogram that I want re-bin to have finer bins. I know that TH1::Rebin() merges the content of two bins into one. What I want to do is the other way round: for example split one bin into two. I don’t know if that is doable?

ROOT Version:Root5

Regardless of the ROOT version, you need to create a new histogram with “finer binning” and then fill it from scratch again.

Hi Haldar,

even if it were possible, there is no point in doing this, as you would not gain any knowledge through this. In a histogram, you do not know the values that went in it, just the bin contents.

You have to create the Histogram with a finer binning and fill it again.



This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.