Logo ROOT  
Reference Guide
rf801_mcstudy Namespace Reference

Variables

 a0 = ROOT.RooRealVar("a0", "a0", 0.5, 0.0, 1.0)
 a1 = ROOT.RooRealVar("a1", "a1", -0.2, -1, 1.0)
 bkg = ROOT.RooChebychev("bkg", "Background", x, [a0, a1])
 c = ROOT.TCanvas("rf801_mcstudy", "rf801_mcstudy", 900, 900)
 corrHist000 = mcstudy.fitResult(0).correlationHist("c000")
 corrHist127 = mcstudy.fitResult(127).correlationHist("c127")
 corrHist953 = mcstudy.fitResult(953).correlationHist("c953")
 frame1 = mcstudy.plotParam(mean, Bins=40)
 frame2 = mcstudy.plotError(mean, Bins=40)
 frame3 = mcstudy.plotPull(mean, Bins=40, FitGauss=True)
 frame4 = mcstudy.plotNLL(Bins=40)
 hh_cor_a0_a1 = mcstudy.fitParDataSet().createHistogram("hh", a0, YVar=a1)
 hh_cor_a0_s1f = mcstudy.fitParDataSet().createHistogram("hh", a1, YVar=sig1frac)
 mcstudy
 mean = ROOT.RooRealVar("mean", "mean of gaussians", 5, 0, 10)
 model = ROOT.RooAddPdf("model", "g1+g2+a", [bkg, sig], [nbkg, nsig])
 nbkg = ROOT.RooRealVar("nbkg", "number of background events, ", 150, 0, 1000)
 nsig = ROOT.RooRealVar("nsig", "number of signal events", 150, 0, 1000)
 sig = ROOT.RooAddPdf("sig", "Signal", [sig1, sig2], [sig1frac])
 sig1 = ROOT.RooGaussian("sig1", "Signal component 1", x, mean, sigma1)
 sig1frac = ROOT.RooRealVar("sig1frac", "fraction of component 1 in signal", 0.8, 0.0, 1.0)
 sig2 = ROOT.RooGaussian("sig2", "Signal component 2", x, mean, sigma2)
 sigma1 = ROOT.RooRealVar("sigma1", "width of gaussians", 0.5)
 sigma2 = ROOT.RooRealVar("sigma2", "width of gaussians", 1)
 x = ROOT.RooRealVar("x", "x", 0, 10)

Variable Documentation

◆ a0

rf801_mcstudy.a0 = ROOT.RooRealVar("a0", "a0", 0.5, 0.0, 1.0)

Definition at line 33 of file rf801_mcstudy.py.

◆ a1

rf801_mcstudy.a1 = ROOT.RooRealVar("a1", "a1", -0.2, -1, 1.0)

Definition at line 34 of file rf801_mcstudy.py.

◆ bkg

rf801_mcstudy.bkg = ROOT.RooChebychev("bkg", "Background", x, [a0, a1])

Definition at line 35 of file rf801_mcstudy.py.

◆ c

rf801_mcstudy.c = ROOT.TCanvas("rf801_mcstudy", "rf801_mcstudy", 900, 900)

Definition at line 103 of file rf801_mcstudy.py.

◆ corrHist000

rf801_mcstudy.corrHist000 = mcstudy.fitResult(0).correlationHist("c000")

Definition at line 96 of file rf801_mcstudy.py.

◆ corrHist127

rf801_mcstudy.corrHist127 = mcstudy.fitResult(127).correlationHist("c127")

Definition at line 97 of file rf801_mcstudy.py.

◆ corrHist953

rf801_mcstudy.corrHist953 = mcstudy.fitResult(953).correlationHist("c953")

Definition at line 98 of file rf801_mcstudy.py.

◆ frame1

rf801_mcstudy.frame1 = mcstudy.plotParam(mean, Bins=40)

Definition at line 84 of file rf801_mcstudy.py.

◆ frame2

rf801_mcstudy.frame2 = mcstudy.plotError(mean, Bins=40)

Definition at line 85 of file rf801_mcstudy.py.

◆ frame3

rf801_mcstudy.frame3 = mcstudy.plotPull(mean, Bins=40, FitGauss=True)

Definition at line 86 of file rf801_mcstudy.py.

◆ frame4

rf801_mcstudy.frame4 = mcstudy.plotNLL(Bins=40)

Definition at line 89 of file rf801_mcstudy.py.

◆ hh_cor_a0_a1

rf801_mcstudy.hh_cor_a0_a1 = mcstudy.fitParDataSet().createHistogram("hh", a0, YVar=a1)

Definition at line 93 of file rf801_mcstudy.py.

◆ hh_cor_a0_s1f

rf801_mcstudy.hh_cor_a0_s1f = mcstudy.fitParDataSet().createHistogram("hh", a1, YVar=sig1frac)

Definition at line 92 of file rf801_mcstudy.py.

◆ mcstudy

rf801_mcstudy.mcstudy
Initial value:
1= ROOT.RooMCStudy(
2 model,
3 {x},
4 Binned=True,
5 Silence=True,
6 Extended=True,
7 FitOptions=dict(Save=True, PrintEvalErrors=0),
8)

Definition at line 64 of file rf801_mcstudy.py.

◆ mean

rf801_mcstudy.mean = ROOT.RooRealVar("mean", "mean of gaussians", 5, 0, 10)

Definition at line 25 of file rf801_mcstudy.py.

◆ model

rf801_mcstudy.model = ROOT.RooAddPdf("model", "g1+g2+a", [bkg, sig], [nbkg, nsig])

Definition at line 44 of file rf801_mcstudy.py.

◆ nbkg

rf801_mcstudy.nbkg = ROOT.RooRealVar("nbkg", "number of background events, ", 150, 0, 1000)

Definition at line 42 of file rf801_mcstudy.py.

◆ nsig

rf801_mcstudy.nsig = ROOT.RooRealVar("nsig", "number of signal events", 150, 0, 1000)

Definition at line 43 of file rf801_mcstudy.py.

◆ sig

rf801_mcstudy.sig = ROOT.RooAddPdf("sig", "Signal", [sig1, sig2], [sig1frac])

Definition at line 39 of file rf801_mcstudy.py.

◆ sig1

rf801_mcstudy.sig1 = ROOT.RooGaussian("sig1", "Signal component 1", x, mean, sigma1)

Definition at line 29 of file rf801_mcstudy.py.

◆ sig1frac

rf801_mcstudy.sig1frac = ROOT.RooRealVar("sig1frac", "fraction of component 1 in signal", 0.8, 0.0, 1.0)

Definition at line 38 of file rf801_mcstudy.py.

◆ sig2

rf801_mcstudy.sig2 = ROOT.RooGaussian("sig2", "Signal component 2", x, mean, sigma2)

Definition at line 30 of file rf801_mcstudy.py.

◆ sigma1

rf801_mcstudy.sigma1 = ROOT.RooRealVar("sigma1", "width of gaussians", 0.5)

Definition at line 26 of file rf801_mcstudy.py.

◆ sigma2

rf801_mcstudy.sigma2 = ROOT.RooRealVar("sigma2", "width of gaussians", 1)

Definition at line 27 of file rf801_mcstudy.py.

◆ x

rf801_mcstudy.x = ROOT.RooRealVar("x", "x", 0, 10)

Definition at line 20 of file rf801_mcstudy.py.