I have a 2d histogram in which I am trying to get the integral by looping over one axis while having the other one fixed but I don’t do how to do, actually I don’t know if it is doable at all, any ideas fellows
Use:
Stat_t Integral(Int_t binx1, Int_t binx2, Int_t biny1, Int_t biny2, Option_t *option) const
Return integral of bin contents in range [binx1,binx2],[biny1,biny2]
for a 2-D histogram
By default the integral is computed as the sum of bin contents in the range.
if option “width” is specified, the integral is the sum of
the bin contents multiplied by the bin width in x and in y.
Rene
Thank you Rene, it worked.