38 RooRealVar mean(
"mean",
"mean of gaussians", 5, -10, 10);
59 std::unique_ptr<RooDataSet>
data{model.generate(
x, 1000)};
86 frame->
SetTitle(
"Covariance between sigma1 and sig1frac");
93 cout <<
"EDM = " <<
r->edm() << endl;
94 cout <<
"-log(L) at minimum = " <<
r->minNll() << endl;
97 cout <<
"final value of floating parameters" << endl;
98 r->floatParsFinal().Print(
"s");
101 cout <<
"correlation between sig1frac and a0 is " <<
r->correlation(
sig1frac,
a0) << endl;
102 cout <<
"correlation between bkgfrac and mean is " <<
r->correlation(
"bkgfrac",
"mean") << endl;
109 cout <<
"correlation matrix" << endl;
111 cout <<
"covariance matrix" << endl;
118 TFile f(
"rf607_fitresult.root",
"RECREATE");
125 TCanvas *
c =
new TCanvas(
"rf607_fitresult",
"rf607_fitresult", 800, 400);
128 gPad->SetLeftMargin(0.15);
129 hcorr->GetYaxis()->SetTitleOffset(1.4);
132 gPad->SetLeftMargin(0.15);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
R__EXTERN TStyle * gStyle
Efficient implementation of a sum of PDFs of the form.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Chebychev polynomial p.d.f.
Plot frame and a container for graphics objects within that frame.
void SetTitle(const char *name) override
Set the title of the RooPlot to 'title'.
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.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
Service class for 2-D histogram classes.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
RooCmdArg Save(bool flag=true)
RooCmdArg PrintLevel(Int_t code)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...