specfit : fit multi-line spectrum

Fit a multiline spectrum. Fit energy resolutions and liniarity.

tesfdmtools.methods.specfit.specfit(elist, elements=['cr', 'cu'], fitrange=[- 30.0, 30.0], debug=False, pltax=None)[source]

Fit multi-line spectrum. Specify the elements for which lines have to be fitted. The first two elements in the list must specify the two strongest alpha lines. At this moment this routine assumes fluorescent lines only. No Bremsstrahlung continuum.

Args:
  • elist = float array with the list of event energies

**Kwargs:
  • elements = list of elements which have lines in the spectrum. The first two elements must have the strongest alpha lines.

  • fitrange = range around the line centers to use for the fit.

  • debug = logical, when True, show some debug information, including plot output on screen.

  • pltax = plot instance (Figure) for plot output. If None show output on screen.