Merge adjacent bins in 2D histogram

Please provide the following information:


ROOT Version (e.g. 6.12/02):
Platform, compiler (e.g. CentOS 7.3, gcc6.2):


Hi Everyone

I am a new rooter.

I got a 2D histogram with the fixed bin size in x and y axis. But I want to set a condition on the entries of each bin, e.g. if bin #1 contains entries more than some value, then divide this bin to satisfy this condition, if bin #2 contains entries less than some value, then merge the adjacent bin to achieve that.
In one word, how can I choose the binning adaptively to allow the equal number of entries in each bin in a 2D histogram?

Thanks in advance

Kang

Hi Kang,

I think we do not provide an off-the-shelf utility to help you here. Perhaps one could consider creating a second TH2 from the first one which is built according to the criteria you describe after analysing the first one?

Cheers,
D

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