Y Max from a 1D profile histogram?

hi hi. so we have a set of 1-dimensional profile histograms showing PMT pulses, and we need to find the max y point to use it as a fitting parameter. we’ve used TSpectrum to find peaks, but it is not entirely accurate and often misses the top point. how do we just ask for ymax?
cheers.

Use TH1::GetMaximumBin (a TProfile is a TH1)

Rene