19x = ROOT.RooRealVar(
"x",
"x", 0, 10)
20model = ROOT.RooChebychev(
"model",
"model", x, [0.0, 0.5, -0.1])
27ROOT.RooAbsPdf.defaultGeneratorConfig().method1D(
False,
False).setLabel(
"RooAcceptReject")
30data_ar = model.generate({x}, 10000, Verbose=
True)
39model.specialGeneratorConfig(
True).method1D(
False,
False).setLabel(
"RooFoamGenerator")
46ROOT.RooAbsPdf.defaultGeneratorConfig().getConfigSection(
"RooAcceptReject").setRealValue(
"nTrial1D", 2000)
51model.specialGeneratorConfig().getConfigSection(
"RooFoamGenerator").setRealValue(
"chatLevel", 1)
55data_foam = model.generate({x}, 10000, ROOT.RooFit.Verbose())