def Import(*args, **kwargs): # Redefinition of `Import` for keyword arguments and converting python dict to std::map. # The keywords must correspond to the CmdArg of the `Import` function. # The instances in the dict must correspond to the template argument in std::map of the `Import` function. from cppyy.gbl import RooFit if len(args) == 1 and len(kwargs) == 0 and isinstance(args[0], dict): args = list(args) args[0] = _dict_to_std_map(args[0], {"std::string": ["TH1*", "RooDataHist*", "RooDataSet*"]}) return RooFit._Import(args[0]) return RooFit._Import(*args, **kwargs)
def Link(*args, **kwargs): r"""The Link function is pythonized for converting python dict to std::map. The keywords must correspond to the CmdArg of the function. The instances in the dict must correspond to the template argument in std::map of the function. """ # Redefinition of `Link` for keyword arguments and converting python dict to std::map. from cppyy.gbl import RooFit if len(args) == 1 and len(kwargs) == 0 and isinstance(args[0], dict): args = list(args) args[0] = _dict_to_std_map(args[0], {"std::string": "RooAbsData*"}) return RooFit._Import(args[0]) return RooFit._Link(*args, **kwargs)