14from __future__
import print_function
23ROOT.RooAbsReal.defaultIntegratorConfig().
Print(
"v")
36ROOT.RooAbsReal.defaultIntegratorConfig().setEpsAbs(1e-6)
37ROOT.RooAbsReal.defaultIntegratorConfig().setEpsRel(1e-6)
44x = ROOT.RooRealVar(
"x",
"x", -10, 10)
45landau = ROOT.RooLandau(
"landau",
"landau", x,
46 ROOT.RooFit.RooConst(0), ROOT.RooFit.RooConst(0.1))
50ROOT.RooMsgService.instance().addStream(
51 ROOT.RooFit.DEBUG, ROOT.RooFit.Topic(ROOT.RooFit.Integration))
54intLandau = landau.createIntegral(ROOT.RooArgSet(x))
55val = intLandau.getVal()
56print(
" [1] int_dx landau(x) = ", val)
63customConfig = ROOT.RooNumIntConfig(
64 ROOT.RooAbsReal.defaultIntegratorConfig())
65customConfig.method1D().setLabel(
"RooAdaptiveGaussKronrodIntegrator1D")
68intLandau2 = landau.createIntegral(
69 ROOT.RooArgSet(x), ROOT.RooFit.NumIntConfig(customConfig))
70val2 = intLandau2.getVal()
71print(
" [2] int_dx landau(x) = ", val2)
78landau.setIntegratorConfig(customConfig)
82intLandau3 = landau.createIntegral(ROOT.RooArgSet(x))
83val3 = intLandau3.getVal()
84print(
" [3] int_dx landau(x) = ", val3)
88ROOT.RooAbsReal.defaultIntegratorConfig().method1D().setLabel(
89 "RooAdaptiveGaussKronrodIntegrator1D")
96ROOT.RooAbsReal.defaultIntegratorConfig().getConfigSection(
97 "RooIntegrator1D").setRealValue(
"maxSteps", 30)
102customConfig.getConfigSection(
103 "RooAdaptiveGaussKronrodIntegrator1D").setRealValue(
"maxSeg", 50)
104customConfig.getConfigSection(
105 "RooAdaptiveGaussKronrodIntegrator1D").setCatLabel(
"method",
"15Points")
108customConfig.getConfigSection(
109 "RooAdaptiveGaussKronrodIntegrator1D").find(
"method").
Print(
"v")
void Print(std::ostream &os, const OptionType &opt)