I want to fill a TH2 histogram with data stored in two different TH1 histograms. The 1-dimensional histograms are extracted by means of the Project3D method from TH3 histograms, which in turn belong to different TTree objects.
This can’t be done.
Assume your first TH1 contains “n” bins (i.e. you have “n” bin values) and your second TH2 contains “m” bins (i.e. you have “m” bin values) … then you have “n+m” bin values in total.
Now, TH2 would contain “nm" bins, so you would need to provide "nm” bin values.