20x = ROOT.RooRealVar(
"x",
"x", 0, 10)
21model = ROOT.RooChebychev(
"model",
"model", x, [0.0, 0.5, -0.1])
28ROOT.RooAbsPdf.defaultGeneratorConfig().method1D(
False,
False).setLabel(
"RooAcceptReject")
31data_ar = model.generate({x}, 10000, Verbose=
True)
40model.specialGeneratorConfig(
True).method1D(
False,
False).setLabel(
"RooFoamGenerator")
47ROOT.RooAbsPdf.defaultGeneratorConfig().getConfigSection(
"RooAcceptReject").setRealValue(
"nTrial1D", 2000)
52model.specialGeneratorConfig().getConfigSection(
"RooFoamGenerator").setRealValue(
"chatLevel", 1)
56data_foam = model.generate({x}, 10000, Verbose=
True)