Logo ROOT  
Reference Guide
rf612_recoverFromInvalidParameters Namespace Reference

Variables

 a1 = ROOT.RooRealVar("a1", "a1", -0.5, -10.0, 20.0)
 a2 = ROOT.RooRealVar("a2", "a2", 0.2, -10.0, 20.0)
 a3 = ROOT.RooRealVar("a3", "a3", 0.01)
 c = ROOT.TCanvas()
 data = pdf.generate(x, 10000)
 fitWithoutRecovery
 fitWithRecovery
 frame = x.frame()
 legend = ROOT.TLegend(0.5, 0.7, 0.9, 0.9)
 LineColor
 Name
 pdf = ROOT.RooPolynomial("pol3", "c + a1 * x + a2 * x*x + 0.01 * x*x*x", x, [a1, a2, a3])
 x = ROOT.RooRealVar("x", "x", -15, 15)

Variable Documentation

◆ a1

rf612_recoverFromInvalidParameters.a1 = ROOT.RooRealVar("a1", "a1", -0.5, -10.0, 20.0)

Definition at line 27 of file rf612_recoverFromInvalidParameters.py.

◆ a2

rf612_recoverFromInvalidParameters.a2 = ROOT.RooRealVar("a2", "a2", 0.2, -10.0, 20.0)

Definition at line 28 of file rf612_recoverFromInvalidParameters.py.

◆ a3

rf612_recoverFromInvalidParameters.a3 = ROOT.RooRealVar("a3", "a3", 0.01)

Definition at line 29 of file rf612_recoverFromInvalidParameters.py.

◆ c

rf612_recoverFromInvalidParameters.c = ROOT.TCanvas()

Definition at line 38 of file rf612_recoverFromInvalidParameters.py.

◆ data

rf612_recoverFromInvalidParameters.data = pdf.generate(x, 10000)

Definition at line 33 of file rf612_recoverFromInvalidParameters.py.

◆ fitWithoutRecovery

rf612_recoverFromInvalidParameters.fitWithoutRecovery
Initial value:
1= pdf.fitTo(
2 data,
3 Save=True,
4 RecoverFromUndefinedRegions=0.0, # This is how RooFit behaved prior to ROOT 6.24
5 PrintEvalErrors=-1, # We are expecting a lot of evaluation errors. -1 switches off printing.
6 PrintLevel=-1,
7)

Definition at line 58 of file rf612_recoverFromInvalidParameters.py.

◆ fitWithRecovery

rf612_recoverFromInvalidParameters.fitWithRecovery
Initial value:
1= pdf.fitTo(
2 data,
3 Save=True,
4 RecoverFromUndefinedRegions=1.0, # The magnitude of the recovery information can be chosen here.
5 # Higher values mean more aggressive recovery.
6 PrintEvalErrors=-1, # We are still expecting a few evaluation errors.
7 PrintLevel=0,
8)

Definition at line 80 of file rf612_recoverFromInvalidParameters.py.

◆ frame

rf612_recoverFromInvalidParameters.frame = x.frame()

Definition at line 39 of file rf612_recoverFromInvalidParameters.py.

◆ legend

rf612_recoverFromInvalidParameters.legend = ROOT.TLegend(0.5, 0.7, 0.9, 0.9)

Definition at line 108 of file rf612_recoverFromInvalidParameters.py.

◆ LineColor

rf612_recoverFromInvalidParameters.LineColor

Definition at line 66 of file rf612_recoverFromInvalidParameters.py.

◆ Name

rf612_recoverFromInvalidParameters.Name

Definition at line 40 of file rf612_recoverFromInvalidParameters.py.

◆ pdf

rf612_recoverFromInvalidParameters.pdf = ROOT.RooPolynomial("pol3", "c + a1 * x + a2 * x*x + 0.01 * x*x*x", x, [a1, a2, a3])

Definition at line 30 of file rf612_recoverFromInvalidParameters.py.

◆ x

rf612_recoverFromInvalidParameters.x = ROOT.RooRealVar("x", "x", -15, 15)

Definition at line 26 of file rf612_recoverFromInvalidParameters.py.