It seems RooFit doesn’t like python.
After AnyRooFitClass.print also ROOT.RooWorkspace.import conflict with python syntax.
The only solution is to use
w.getattribute(‘import’)(model)
It seems RooFit doesn’t like python.
After AnyRooFitClass.print also ROOT.RooWorkspace.import conflict with python syntax.
The only solution is to use
w.getattribute(‘import’)(model)
Hi,
perhaps renaming using the getattr call:ROOT.RooWorkspace.rfimport = getattr(ROOT.RooWorkspace, 'import')
and using rfimport from there on. There’s a bunch of other issues (e.g. lifetime and “using” declarations) with RooFit. It’d be great if these could all be collected and put together in a patch-up file.
Cheers,
Wim