TSpectrum of non-gaussian peaks


Correct me, if I’m wrong.

  1. It seems to me that the TSpectrum class can only work on TH1F histograms (so it cannot work on TH1D).
  2. It seems to me that the only peaks’ shape that is allowed is a “gauss”.

Well, then I think I have two questions.

  1. First, just a rhetoric question … would it be easy to extend TSpectrum so that it works on TH1D, too?

  2. Then, a serious question … what would I need to do to convince TSpectrum to use my own (“user defined”) peaks’ shape (e.g. in form of a TF1 function, or a C++ function)?