Question about TSpectrum alternatives

Hi all,

in the TSpectrum documentation is written now:
" TSpectrum is a legacy interface: it is not recommended to use it in new code. There will be no bug fixes nor new developments."

Is there any other alternative to TSpectrum at this point?

Cheers,
Henrique

I think @moneta should know

1 Like

Hi,

We don’t have an alternative dedicated for analysis of nuclear physics spectra. You would need to use just the standard ROOT classes (e.g. TH1) and its fitting functionality and/or for more complex modelling and fitting, we have RooFit.
Which particular functionality of TSpectrum are you interested on ?

Cheers

Lorenzo

Hello,

Thanks for the reply. It is the gold deconvolution method, peak finder and background estimation.

Cheers

Hi,

Thank you for the answer.
As alternative, for deconvolution of spectra you could try to use the TUnfold class, while for background estimation you can perform a fit to spectrum using RooFit for the model.

If you still want to use TSpectrum, you can still continue using it as it is; we will not remove it from ROOT, but we will not apply fixes or develop it more.

Best regards

Lorenzo

1 Like

Hi Lorenzo,

Thanks again for the information!

Cheers,
Henrique