Rebinning TH2 with variable bin size

Hi all

Is it possible to rebin a TH2 histo with variable bin size? I see that currently the Rebin2D function can do it with a uniform bin size like:

histo2D.Rebin2D(5,5)

but I am searching some more like in the TH1 case:

varBin = array( 'd', [ 0, 2, 5, 8, 10])
histo1D.Rebin( len(varBin)-1, 'histo_rebin', varBin )

I saw a similar question here [1] but not specific answer was provided.

Thanks a lot for the help.

Alejandro

[1] Rebin TH2 with variable bin size

ROOT Version: 6.12/07
Platform: Linux


I think it is still not possible. See this bug report.

1 Like

Hi,

Yes, this is correct This functionality is not currently available. If you want to implement and provide us a pull request it will be great!

Lorenzo

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