Sigma value for peak finding using TSpectrum

Hi guys,
So, I am using TSpectrum class to find the largest peak in a histogram. the code looks like this:

    TSpectrum *s = new TSpectrum();

But it doesn’t always work very well, if the highest peak is at 1640, sometimes it will give 1555.
I think it is because of my choice of sigma, can you guys tell me how to choose a proper sigma for this?

ROOT Version: 6.22/00
Platform: linux
Compiler: Not Provided


you might want to check this:

1 Like