Combined fit with pyroot


I’m a beginner in using ROOT and pyROOT but I have a working code to fit a scattered gaussian to a TF1 function. However I’m now trying to do a combined fit on a few TF1 functions with one or two common parameters of the same function.
I saw a tutorial in C++ … Fit.C.html
but I’m not sure on how to translate that to python (especially the GlobalChi2 struct). I searched in this forum and on the web but has anyone did this before?

Any references or advices on which function to look at would be greatly appreciated.



haven’t tried, but the FitFCN function of the Fitter class is “pythonized” and can thus take any callable python object (or function), so implementing a class with a call method should do the trick.