Read data from external database and associate values to histogram

Dear all,
I am a new ROOT user, I need some information about the possibility to use external database (i.e. IAEA) to label peaks in a monodimensional histogram.

I have an ASCII file containing a spectrum presenting n peaks. I would like to write a script to make an automatic search of the peaks in the spectrum and associate the centroid of each peak (expressed in keV) with a list of isotopes to be searched in an external database or an external file.

Do you have any idea on how can I try to do this?

thank you very much to anyone who can help

ROOT Version (e.g. 6.12/02): 5.34/30
Platform, compiler (e.g. CentOS 7.3, gcc6.2):

may be the following example can help you:

Thank you very much for your help, the tutorials are very useful, but don’t tell me how to associate a peak to an isotope searching in an external database. Do you know how to create a link to an external database?

I do not know how to do that. I guess you will have to do some little programming to do that. It all depends what you mean by “how to create the link” …

As fas as I remember, IAEA provides (for free) software / libraries which analyse spectra. For example GANAAS (the gamma ray and neutron activation analysis software), which is an old DOS utility but maybe one can still run it on Linux using e.g. DOSEMU or DOSBox.

Another (free) software which comes to my mind is the RadWare package for interactive graphical analysis of gamma-ray coincidence data.

Also, all major commercial gamma-spectrometry manufacturers sell (for $$$ to $$$$) utilities which analyse spectra.

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