THnSparse Correction

Multiply the bin of a dimension of the THnSparse by a correction factor (the correction factor of each bin is different), and the multiplication of the correction factor will change the content and error of the THnSparse. Could you give me an example of how to write code?(For example, if my THnSparse has five dimensions and I modify the first dimension.)

Maybe by using GetBinContent and SetBinContent

Thank you very much for your advice, I managed to solve the problem!

1 Like

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