Copy Histogram to a new one with different binning

Hello,

I would like to fill a histogram (Histo2) from an existing one (Histo1), where Histo2 has different binning (variable binning) compared to Histo1.
Is there a way to do it ??
Unfortunately, I have no access to the Tree data in order to fill Histo2 from scratch.

Thank you in advance.
Loukas

Hi,

I managed to tackle it using histo1->Rebin(bins,“histo2”,xbins);

cheers–loukas