I have a TH2D (X vs. Y), and I want to get X TH1D’s, in specific ranges of Y, so I do the following
hX_i_j = hXY->ProjectionX(“hX_i_j”, hXY->GetYaxis()->FindBin(i), hXY->GetYaxis()->FindBin(j))
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!!