but this is giving something else from what I would expect. Is there anything wrong with what I’m doing? is there any cleaner way of doing that? Thanks!!
where yvalue is the y value for which you want to get the slice. It is not clear to me what are i and j.
They should be y values and not bin numbers. If you have a range (inlacing more bins in y) you will have a projection, i.e. the sum of all contents of the y bins.
Hi Moneta! sorry for the bad notation, but i and j are indeed yvalues, but when I compare the entries on the actual TH2 plot, it’s not the same, … any idea why this is?
Hi, sorry for the late message, I tried the method on a simple TH2D histogram and it worked fine, I will double-check my original problem, thanks a lot!