How to get peaks position after ShowPeaks

I use ShowPeaks to see where are the different peaks on my histogram. It is possible to get the position of this peaks with a simple way. Actually I use a subroutine which use TSpectrum and so on. So I would like to know if these positions (after ShowPeaks) are store in a table and if it is true, what the name of this table.

se tutorials at $ROOTSYS/tutorials/spectrum/peaks.C, etc


ShowPeaks is an interface to TSpectrum::Search (as said in the help). Have a look at the help of TSpectrum ::Search: … rum:Search
It tells you how to access the peaks data which are stored in the TPolyMarker.