Hi,
I’ve translated RooFit macro #105 to PyROOT, but I don’t manage to get it to work since I don’t know how to convert the bindFunction and bindPdf statements. The problematic lines are:
I guess that I need to explicitly “cast” some of the objects that I pass to those functions. Could you help me with that? The full code is at https://github.com/clelange/roofit/blob/master/rf105_funcbinding.py, the original C-code at https://root.cern.ch/root/html/tutorials/roofit/rf105_funcbinding.C.html
Kind regards,
Clemens