20ROOT.RooAbsReal.defaultIntegratorConfig().
Print(
"v")
33ROOT.RooAbsReal.defaultIntegratorConfig().setEpsAbs(1e-6)
34ROOT.RooAbsReal.defaultIntegratorConfig().setEpsRel(1e-6)
39x = ROOT.RooRealVar(
"x",
"x", -10, 10)
40landau = ROOT.RooLandau(
"landau",
"landau", x, 0.0, 0.1)
43landau.forceNumInt(
True)
47ROOT.RooMsgService.instance().addStream(ROOT.RooFit.DEBUG, Topic=ROOT.RooFit.Integration)
50intLandau = landau.createIntegral({x})
51val = intLandau.getVal()
52print(
" [1] int_dx landau(x) = ", val)
59customConfig = ROOT.RooNumIntConfig(ROOT.RooAbsReal.defaultIntegratorConfig())
60integratorGKNotExisting = customConfig.method1D().setLabel(
"RooAdaptiveGaussKronrodIntegrator1D")
61if integratorGKNotExisting:
62 print(
"WARNING: RooAdaptiveGaussKronrodIntegrator is not existing because ROOT is built without Mathmore support")
65intLandau2 = landau.createIntegral({x}, NumIntConfig=customConfig)
66val2 = intLandau2.getVal()
67print(
" [2] int_dx landau(x) = ", val2)
74landau.setIntegratorConfig(customConfig)
78intLandau3 = landau.createIntegral({x})
79val3 = intLandau3.getVal()
80print(
" [3] int_dx landau(x) = ", val3)
84if not integratorGKNotExisting:
85 ROOT.RooAbsReal.defaultIntegratorConfig().method1D().setLabel(
"RooAdaptiveGaussKronrodIntegrator1D")
92 ROOT.RooAbsReal.defaultIntegratorConfig().getConfigSection(
"RooIntegrator1D").setRealValue(
"maxSteps", 30)
97 customConfig.getConfigSection(
"RooAdaptiveGaussKronrodIntegrator1D").setRealValue(
"maxSeg", 50)
98 customConfig.getConfigSection(
"RooAdaptiveGaussKronrodIntegrator1D").setCatLabel(
"method",
"15Points")
101 customConfig.getConfigSection(
"RooAdaptiveGaussKronrodIntegrator1D").find(
"method").
Print(
"v")
void Print(GNN_Data &d, std::string txt="")