Fit histogram of characteristic x-ray with TSpectrumFit

Hi,

I try to fit my dataset (raw_data) that consist of ToT values of a detector with TSpectrumFit. Is this possible with this class? If so, how should this be implemented in PyRoot?

Hi,

If you have an histogram of data you can use TH1::Fit to fit with whatever function you want. Or would you like to do something different ? Please explain better in this case your problem

Lorenzo