So, I am using TSpectrum class to find the largest peak in a histogram. the code looks like this:
TSpectrum *s = new TSpectrum(); s->Search(hst,2,"nobackground"); positions=s->GetPositionX();
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
Compiler: Not Provided