From corresponding reconstructed and true values I’ve built a TH2D Histogram that illustrates an energy smearing. I’d like to convert the TH2D to a Matrix in order to be able to build the inverted matrix and put it back into a TH2D for further calculations within my analysis.

I have not been able to find examples doing this.
Can someone point me to relevant examples?

Thank you for the replies @moneta, @couet & @jalopezg!
I tried and they work for implementation, unfortunately my matrix is singular and results with a pseudo inverse also do not look satisfying. I guess I’ll have to do some chi2 method