# Peak finding program

**URL:** <https://root-forum.cern.ch/t/peak-finding-program/45891>\
**Category:** Newbie\
**Created:** [July 18, 2021, 7:17am UTC](https://root-forum.cern.ch/t/peak-finding-program/45891 "2021-07-18T07:17:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saradindu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/saradindu/32/26687_2.png) [@Saradindu](https://root-forum.cern.ch/u/Saradindu)\
**Post date:** [July 18, 2021, 7:17am UTC](https://root-forum.cern.ch/t/peak-finding-program/45891/1 "2021-07-18T07:17:24Z")

</div>

I have some root files consisting of spectrums.  
I have to write down a code to check gain drift and fitting the peaks.  
How do I find out the peaks out of the spectrum and fit them ??

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [July 18, 2021, 7:34am UTC](https://root-forum.cern.ch/t/peak-finding-program/45891/2 "2021-07-18T07:34:00Z")

</div>

[https://root.cern/doc/master/peaks\_8C.html](https://root.cern/doc/master/peaks_8C.html)  
also  
[https://root-forum.cern.ch/search?q=find%20peaks](https://root-forum.cern.ch/search?q=find%20peaks)
