# Need of doc in TSpectrum:Search

**URL:** <https://root-forum.cern.ch/t/need-of-doc-in-tspectrum-search/16791>\
**Category:** ROOT\
**Created:** [October 24, 2013, 3:42pm UTC](https://root-forum.cern.ch/t/need-of-doc-in-tspectrum-search/16791 "2013-10-24T15:42:36Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![pamputt](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pamputt/32/12526_2.png) [@pamputt](https://root-forum.cern.ch/u/pamputt)\
**Post date:** [October 24, 2013, 3:42pm UTC](https://root-forum.cern.ch/t/need-of-doc-in-tspectrum-search/16791/1 "2013-10-24T15:42:36Z")

</div>

Hello, in the [doc of Search mathod](http://root.cern.ch/root/html/TSpectrum.html#TSpectrum:Search) of TSpectrum, one can read

> [@](#):
>
> sigma: sigma of searched peaks, for details we refer to manual

The problem is I do not find any information on the Serach method of TSpectrum in the ROOT User Guide. Does it refer to another manual?  
So could you clarify that point in the web documentation or add a section in the ROOT User Guide. Quickly, I hust wanted to know what is the “unit” of sigma. I understand that a big sigma corresponds to wide peaks and a small one to narrow peaks. But what does “big” and “small” means? What is the unit of “sigma” (bin, value, …)?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![tc3t](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@tc3t](https://root-forum.cern.ch/u/tc3t)\
**Post date:** [October 24, 2013, 6:15pm UTC](https://root-forum.cern.ch/t/need-of-doc-in-tspectrum-search/16791/2 "2013-10-24T18:15:12Z")

</div>

Thread [url=https://root-forum.cern.ch/t/tspectrum-search/15499/1 might contain answer to the first question.

---

<div class="post-metadata">

**Author:** ![pamputt](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pamputt/32/12526_2.png) [@pamputt](https://root-forum.cern.ch/u/pamputt)\
**Post date:** [October 25, 2013, 7:51am UTC](https://root-forum.cern.ch/t/need-of-doc-in-tspectrum-search/16791/3 "2013-10-25T07:51:25Z")

</div>

You are right, I guess this refers to this document. Maybe the link to this document could be provided directly in the HTML documentation.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 31, 2013, 4:31pm UTC](https://root-forum.cern.ch/t/need-of-doc-in-tspectrum-search/16791/4 "2013-10-31T16:31:19Z")

</div>

I have translated the Spectrum Word document into markown. This allows to have this manual in the ROOT related user’s guides page: [https://root.cern.ch/root-user-guides-and-manuals](https://root.cern.ch/root-user-guides-and-manuals)  
Note that this manual is now available in:

- pdf (A4 and letter)
- html
- epub

---

<div class="post-metadata">

**Author:** ![Vladislav](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vladislav/32/24070_2.png) [@Vladislav](https://root-forum.cern.ch/u/Vladislav)\
**Post date:** [October 24, 2017, 11:26am UTC](https://root-forum.cern.ch/t/need-of-doc-in-tspectrum-search/16791/5 "2017-10-24T11:26:03Z")

</div>

Dear Couet,  
So, what is sigma?  
Is it possible to give this information in this topic, because I see many links and new link inside them and such links do not work or without this information.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 24, 2017, 11:38am UTC](https://root-forum.cern.ch/t/need-of-doc-in-tspectrum-search/16791/6 "2017-10-24T11:38:14Z")

</div>

> [@Vladislav](#):
>
> So, what is sigma?

what do you mean ? which “sigma” are you talking about ?

---

<div class="post-metadata">

**Author:** ![Vladislav](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vladislav/32/24070_2.png) [@Vladislav](https://root-forum.cern.ch/u/Vladislav)\
**Post date:** [October 24, 2017, 11:45am UTC](https://root-forum.cern.ch/t/need-of-doc-in-tspectrum-search/16791/7 "2017-10-24T11:45:27Z")

</div>

> [@couet](#):
>
> what do you mean ? which “sigma” are you talking about ?

In TSpectrum class there is a method

```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 
	) 	

```

I try to understand what is **Double\_t sigma**.

> [@pamputt](#):
>
> I understand that a big sigma corresponds to wide peaks and a small one to narrow peaks. But what does “big” and “small” means? What is the unit of “sigma” (bin, value, …)?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 24, 2017, 11:53am UTC](https://root-forum.cern.ch/t/need-of-doc-in-tspectrum-search/16791/8 "2017-10-24T11:53:32Z")

</div>

This documentation is delivered “as it is” . The author of this code and documentation is not available anymore. I am afraid you we cannot give you more details than what is written in this doc or what you can read in the code itself.

---

<div class="post-metadata">

**Author:** ![Vladislav](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vladislav/32/24070_2.png) [@Vladislav](https://root-forum.cern.ch/u/Vladislav)\
**Post date:** [October 24, 2017, 12:00pm UTC](https://root-forum.cern.ch/t/need-of-doc-in-tspectrum-search/16791/9 "2017-10-24T12:00:01Z")

</div>

> [@couet](#):
>
> than what is written in this doc

Just to clarify:  
Do you mean [ROOT: TSpectrum Class Reference](https://root.cern.ch/doc/master/classTSpectrum.html#TSpectrum:Search) and

1. 

```
M.A. Mariscotti: A method for identification of peaks in the presence of background and its application to spectrum analysis. NIM 50 (1967), 309-320.

```

2. 

```
M. Morhac;, J. Kliman, V. Matouoek, M. Veselsky, I. Turzo.:Identification of peaks in multidimensional coincidence gamma-ray spectra. NIM, A443 (2000) 108-125.

```

3. 

```
Z.K. Silagadze, A new algorithm for automatic photopeak searches. NIM A 376 (1996), 451.

```

?

Do you have the first article in free access on root cern web cite ?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 24, 2017, 12:02pm UTC](https://root-forum.cern.ch/t/need-of-doc-in-tspectrum-search/16791/10 "2017-10-24T12:02:14Z")

</div>

> [@Vladislav](#):
>
> Do you have the first article in free access on root cern web cite ?

All what we have is:

- The doc: [Get Started - ROOT](https://root.cern.ch/root-user-guides-and-manuals)

- The source code

- and some example: [ROOT: Spectrum tutorials](https://root.cern/doc/master/group __tutorial__ spectrum.html)

---

<div class="post-metadata">

**Author:** ![Vladislav](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vladislav/32/24070_2.png) [@Vladislav](https://root-forum.cern.ch/u/Vladislav)\
**Post date:** [October 24, 2017, 12:14pm UTC](https://root-forum.cern.ch/t/need-of-doc-in-tspectrum-search/16791/11 "2017-10-24T12:14:47Z")

</div>

Dear Couet,  
Thank you for your help!  
I will try to find this info in source code.

---

<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:** [October 24, 2017, 1:43pm UTC](https://root-forum.cern.ch/t/need-of-doc-in-tspectrum-search/16791/12 "2017-10-24T13:43:54Z")

</div>

Hi Vladislav,

> [@Vladislav](#):
>
> So, what is sigma?

The following is written in the middle of [section 3.1 of the TSpectrum guide](https://root.cern.ch/root/htmldoc/guides/spectrum/Spectrum.html#dimensional-spectra-3):

> …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:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [October 24, 2017, 1:54pm UTC](https://root-forum.cern.ch/t/need-of-doc-in-tspectrum-search/16791/13 "2017-10-24T13:54:14Z")

</div>

Ah good ! So you found it 🙂

---

<div class="post-metadata">

**Author:** ![Vladislav](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vladislav/32/24070_2.png) [@Vladislav](https://root-forum.cern.ch/u/Vladislav)\
**Post date:** [October 24, 2017, 2:06pm UTC](https://root-forum.cern.ch/t/need-of-doc-in-tspectrum-search/16791/14 "2017-10-24T14:06:07Z")

</div>

Thanks a lot! 👍👍👍
