# SearchHighRes() peak detection function - Consequence of sigma and number of decollation interration

**URL:** <https://root-forum.cern.ch/t/searchhighres-peak-detection-function-consequence-of-sigma-and-number-of-decollation-interration/29174>\
**Category:** ROOT\
**Created:** [May 29, 2018, 7:37am UTC](https://root-forum.cern.ch/t/searchhighres-peak-detection-function-consequence-of-sigma-and-number-of-decollation-interration/29174 "2018-05-29T07:37:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bb38p](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/c68b51/32.png) [@bb38p](https://root-forum.cern.ch/u/bb38p)\
**Post date:** [May 29, 2018, 7:37am UTC](https://root-forum.cern.ch/t/searchhighres-peak-detection-function-consequence-of-sigma-and-number-of-decollation-interration/29174/1 "2018-05-29T07:37:20Z")

</div>

Hi everyone,

I’m new to ROOT and this forum so please be indulgent.

I’ve been using ROOT for 3 days to analyse some particle physics spectrums. I’m having troubles with the function SearchHighRes() that I chose to use after seeing a few ROOT tutorials.

```auto
Int_t TSpectrum::SearchHighRes	(	Double_t * source,
Double_t * destVector,
Int_t ssize,
Double_t sigma,
Double_t threshold,
bool backgroundRemove,
Int_t deconIterations,
bool markov,
Int_t averWindow 
)	

```

[https://root.cern.ch/doc/v608/classTSpectrum.html#a5ba181a45b117934b48c4ef5f78d0b2b](https://root.cern.ch/doc/v608/classTSpectrum.html#a5ba181a45b117934b48c4ef5f78d0b2b)

It seems to be an efficient and effective way to retrieve the position of a peak in a spectrum with quite a lot of background noise.

The issue is that, even with the help of the online documentation, I’m not quite sure to understand all the parameters of the function and especially how to choose them.

For instance, it is needed to provide a number of iterations for deconvolution but I have no idea how to chose it nor it is explained in the tutorials. Depending on this int, peaks position are sometimes good on a part of a spectrum and completely shifted on another. Amplitudes of the background-less spectrum varies a lot as well.

The other parameter with which I’m having an issue is sigma. I tried different values as well, but I’m not quite sure about the results.

Is anyone familiar with the function willing to help?

Thanks a lot.  
Best.  
\_\_  
_ROOT Version:_ 6.12/06  
_Platform:_ macOS 10.3.4

* * *

---

<div class="post-metadata">

**Author:** ![yus](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/9fc348/32.png) [@yus](https://root-forum.cern.ch/u/yus)\
**Post date:** [May 30, 2018, 7:35am UTC](https://root-forum.cern.ch/t/searchhighres-peak-detection-function-consequence-of-sigma-and-number-of-decollation-interration/29174/2 "2018-05-30T07:35:22Z")

</div>

Hi,

regarding the sigma: check out [this post](https://root-forum.cern.ch/t/need-of-doc-in-tspectrum-search/16791/12), it says:

> …The value in the center of the peak value[i] minus the average value in two symmetrically positioned channels (channels i-3\*sigma, i+3\*sigma) must be greater than threshold. Otherwise the peak is ignored…

---

<div class="post-metadata">

**Author:** ![bb38p](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/c68b51/32.png) [@bb38p](https://root-forum.cern.ch/u/bb38p)\
**Post date:** [May 30, 2018, 9:40am UTC](https://root-forum.cern.ch/t/searchhighres-peak-detection-function-consequence-of-sigma-and-number-of-decollation-interration/29174/3 "2018-05-30T09:40:29Z")

</div>

Thanks for the reply. I’ll have a look.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [June 13, 2018, 9:40am UTC](https://root-forum.cern.ch/t/searchhighres-peak-detection-function-consequence-of-sigma-and-number-of-decollation-interration/29174/4 "2018-06-13T09:40:33Z")

</div>

Closed on June 13, 2018, 9:40am UTC

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