void rf503_wspaceread()
{
model->Print("t");
model->fitTo(*
data, PrintLevel(-1));
RooPlot *xframe =
x->
frame(Title(
"Model and data read from workspace"));
model->plotOn(xframe);
model->plotOn(xframe, Components(
"bkg"), LineStyle(
kDashed));
model->plotOn(xframe, Components(
"bkg,sig2"), LineStyle(
kDotted));
new TCanvas(
"rf503_wspaceread",
"rf503_wspaceread", 600, 600);
gPad->SetLeftMargin(0.15);
}
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Abstract base class for binned and unbinned datasets.
Abstract interface for all probability density functions.
Plot frame and a container for graphics objects within that frame.
static RooPlot * frame(const RooAbsRealLValue &var, double xmin, double xmax, Int_t nBins)
Create a new frame for a given variable in x.
void Draw(Option_t *options=nullptr) override
Draw this plot and all of the elements it contains.
Variable that can be changed from the outside.
Persistable container for RooFit projects.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
0x2bf986b0 RooAddPdf::model = 0.9/1 [Auto,Clean]
0x2c33f160/V- RooChebychev::bkg = 0.8 [Auto,Dirty]
0x2b652790/V- RooRealVar::x = 5
0x290febe0/V- RooRealVar::a0 = 0.5
0x28f96770/V- RooRealVar::a1 = 0.2
0x2c40ec80/V- RooRealVar::bkgfrac = 0.5
0x2c3b2980/V- RooAddPdf::sig = 1/1 [Auto,Clean]
0x2c392d80/V- RooGaussian::sig1 = 1 [Auto,Dirty]
0x2b652790/V- RooRealVar::x = 5
0x2b6196c0/V- RooRealVar::mean = 5
0x2b491e90/V- RooRealVar::sigma1 = 0.5
0x2b5002c0/V- RooRealVar::sig1frac = 0.8
0x2c3a14e0/V- RooGaussian::sig2 = 1 [Auto,Dirty]
0x2b652790/V- RooRealVar::x = 5
0x2b6196c0/V- RooRealVar::mean = 5
0x2b54b180/V- RooRealVar::sigma2 = 1
[#1] INFO:Fitting -- RooAbsPdf::fitTo(model) fixing normalization set for coefficient determination to observables in data
[#1] INFO:Fitting -- using generic CPU library compiled with no vectorizations
[#1] INFO:Fitting -- Creation of NLL object took 9.44188 ms
[#1] INFO:Fitting -- RooAddition::defaultErrorLevel(nll_model_modelData) Summation contains a RooNLLVar, using its error level
[#1] INFO:Minimization -- [fitFCN] No discrete parameters, performing continuous minimization only
[#1] INFO:Plotting -- RooAbsPdf::plotOn(model) directly selected PDF components: (bkg)
[#1] INFO:Plotting -- RooAbsPdf::plotOn(model) indirectly selected PDF components: ()
[#1] INFO:Plotting -- RooAbsPdf::plotOn(model) directly selected PDF components: (bkg,sig2)
[#1] INFO:Plotting -- RooAbsPdf::plotOn(model) indirectly selected PDF components: (sig)