Median of a TH1F

Hi all,

I have a TH1F. How to get its median value?
Is there some function which does this?

thanks

M

Hi,

You can use the function TH1::GetQuantiles
root.cern.ch/root/htmldoc/TH1.ht … tQuantiles

and you use 0.5 as the probability value

Lorenzo

1 Like