Covariance of two histograms

@bellenot, Hi bellenot,
Yes, @moneta has helped me resolve how to propagate a uncertainty between two variables.
Actually, to get the uncertainty, a covariance between two variables is necessary.
I get a similar question like below. However, I need to recreate a new TH2. I wonder whether there is
a more simple method to get it.

Thanks a lot.
Liuyao