# If TSpectrum Class is Legacy Code? Another Code For TSpectrum?

**URL:** <https://root-forum.cern.ch/t/if-tspectrum-class-is-legacy-code-another-code-for-tspectrum/50833>\
**Category:** Newbie\
**Created:** [July 17, 2022, 2:36am UTC](https://root-forum.cern.ch/t/if-tspectrum-class-is-legacy-code-another-code-for-tspectrum/50833 "2022-07-17T02:36:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [July 17, 2022, 6:12am UTC](https://root-forum.cern.ch/t/if-tspectrum-class-is-legacy-code-another-code-for-tspectrum/50833/2 "2022-07-17T06:12:38Z")

</div>

> [@Question about TSpectrum alternatives](https://root-forum.cern.ch/t/question-about-tspectrum-alternatives/48447):
>
> 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

> [@Alternative for TSpectrum?](https://root-forum.cern.ch/t/alternative-for-tspectrum/49984):
>
> Hi! We are currently doing some spectrum analysis on a dataset obtained from a fiber scintillator detector setup. Our old code uses TSpectrum in it. Since it’s mentioned that TSpectrum is now legacy, are there any general alternatives to use it? Is it possible to use RooFit or RooStats? \_ROOT Version: 6.26.02 Best regards, Joey

---

_[View the full topic](https://root-forum.cern.ch/t/if-tspectrum-class-is-legacy-code-another-code-for-tspectrum/50833)._
