Finding the peak in a TGraphError

Hi,

I am trying to get the peak in a TGraphError … pls what class would i use?

Maybe this tutorial can help…

1 Like

The peaks.C example Bertrand pointed allows to find all the peaks in a TH1F. You mentioned “the peak” … if you are looking for one single peak (as the spelling of your message suggested) then what you are looking for is may be only the maximum ?

I used TMath:: MaxElement … this gives the peak at y-axis…

Thanks to everyone.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.