Convert several TH1 to TH2

Dear experts,

Now I have several TH1, with the x-axis have the same binning, can I convert them to a TH2, which has the same x-axis as TH1, and the each bin of y-axis stands for a TH1. The bin content of the TH2 is the bin content of the TH1.
I know, I can accomplish it with the loop and set bin content. Is there any easier way to do so?
I hope it’s clear.
Thanks in advance.



Indeed, you’ll have to iterate over the bins.

Cheers, Axel.

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