I would like to know a method to find maximum value of a histo. I do not find a TH1 function GetXMaximum()? Any idea?
and if you want to know the X position corresponding to the maximum content, do
int binmax = h->GetMaximumBin();
double x = h->GetXaxis()->GetBinCenter(binmax);
In fact, I exposed my problem badly. I do not want to know the maximum value of the histogramm but the maximum value of the x-axis (abscissa up to which there are data). I have some histogramms which do not contain anymore data from one point. I would like to know position of this point.
see TH1::FindFirstBinAbove and FindlastBinAbove