Multplying TH2 by TH1

Hello ROOTers,
I have a 2D histogram matrix which I need to multiply its column by another 1D histogram. Is there any way for doing that?

_ROOT Version:5

@pcanal any help on this problem?

I think your original question is a bit unclear. If your 2D histogram is a function H(binx, biny) and your 1D histogram is G(binx), you want a new 2D histogram J(binx,biny) = H(binx,biny) * G(binx)?

If that’s the case, you might need to do the loops yourself to get the bin contents of H and G and set the new bin contents for J.

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