How to have different bin widths for a histogram in a .root file?

@jalopezg I want to find a way to redo the bin width size of an already existing histogram and have these bin width sizes vary

I looked at this example ROOT: tutorials/hist/rebin.C File Reference

and also at this forum question Different bin size in 1D histogram