https://github.com/vladandreitoma/automatic_backgroundextraction-peakdetection_forcalculatingenergyresolutionsofscintillatordetector
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vladandreitoma/automatic_backgroundextraction-peakdetection_forcalculatingenergyresolutionsofscintillatordetector
- Owner: VladAndreiToma
- Created: 2024-10-16T14:13:56.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-16T14:29:40.000Z (8 months ago)
- Last Synced: 2025-02-08T13:44:22.601Z (4 months ago)
- Language: C++
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This code aims for now to study the responses of detector under different configuration of DAQ software parameters.
By analysing the emission spectra of Co60 source we get detector responses( scintillator detectors for now ). From there further processing is needed
First we extract the background using the extraction algorhythm that Cern's ROOT - TSpectrum Class provides.
After we get a clean spectra we procceed to extract peaks with the same TSpectrum Class. We introduce some mean value that we might expect from literature and some threshold above which the algorhythm within this method should account for signals in peak calculation
We are interested in the position on the x axis that is correlated with the energy of the gamma ray emitted and present in the spectra.
Then around that "mean" value we perform iterrative fits( optional ) or just a one time fit to get the true mean and sigma for a gaussian function that would describe the peak shape as perfect as possible.
Having these values for both gammas of Co60( cobalt ) we can compute the resolution as (FWHM/MEAN)*GammaRayEnergy.