11from __future__
import print_function
20ROOT.RooAbsReal.defaultIntegratorConfig().
Print(
"v")
33ROOT.RooAbsReal.defaultIntegratorConfig().setEpsAbs(1e-6)
34ROOT.RooAbsReal.defaultIntegratorConfig().setEpsRel(1e-6)
41x = ROOT.RooRealVar(
"x",
"x", -10, 10)
42landau = ROOT.RooLandau(
"landau",
"landau", x,
43 ROOT.RooFit.RooConst(0), ROOT.RooFit.RooConst(0.1))
47ROOT.RooMsgService.instance().addStream(
48 ROOT.RooFit.DEBUG, ROOT.RooFit.Topic(ROOT.RooFit.Integration))
51intLandau = landau.createIntegral(ROOT.RooArgSet(x))
52val = intLandau.getVal()
53print(
" [1] int_dx landau(x) = ", val)
60customConfig = ROOT.RooNumIntConfig(
61 ROOT.RooAbsReal.defaultIntegratorConfig())
62customConfig.method1D().setLabel(
"RooAdaptiveGaussKronrodIntegrator1D")
65intLandau2 = landau.createIntegral(
66 ROOT.RooArgSet(x), ROOT.RooFit.NumIntConfig(customConfig))
67val2 = intLandau2.getVal()
68print(
" [2] int_dx landau(x) = ", val2)
75landau.setIntegratorConfig(customConfig)
79intLandau3 = landau.createIntegral(ROOT.RooArgSet(x))
80val3 = intLandau3.getVal()
81print(
" [3] int_dx landau(x) = ", val3)
85ROOT.RooAbsReal.defaultIntegratorConfig().method1D().setLabel(
86 "RooAdaptiveGaussKronrodIntegrator1D")
93ROOT.RooAbsReal.defaultIntegratorConfig().getConfigSection(
94 "RooIntegrator1D").setRealValue(
"maxSteps", 30)
99customConfig.getConfigSection(
100 "RooAdaptiveGaussKronrodIntegrator1D").setRealValue(
"maxSeg", 50)
101customConfig.getConfigSection(
102 "RooAdaptiveGaussKronrodIntegrator1D").setCatLabel(
"method",
"15Points")
105customConfig.getConfigSection(
106 "RooAdaptiveGaussKronrodIntegrator1D").find(
"method").
Print(
"v")
void Print(std::ostream &os, const OptionType &opt)