Hi Forum,
apologies for crossposting, but the RooFit support mailing list doesn’t have enough subscribers.
I would like to get RooFit working with PyRoot, so I started to translate the Getting Started script from the wiki.
http://roofit.sourceforge.net/wiki/
Unfortunately, I fail.
The line that causes the script to break is this:
data->plotOn(frame,Binning(8)); // plot data histogram using 8 bins
Obviously Python and I don’t understand the API very well.
PlotOn requires either a RooLinkedList or a PlotOpt struct as the second argument, but Binning returns a RooCmdArg.
Now neither the RooLinkedList or the PlotOpt has a constructor that would accept a RooCmdArg. So I don’t really understand how this works in the first place.
Could anybody more comfortable with the API explain this a bit more, so that I could try and get this working with PyRoot. (Which I would of course contribute to the WIKI)
Thank you,
Jan