34 RooRealVar mean(
"mean",
"mean of gaussians", 5);
35 RooRealVar sigma1(
"sigma1",
"width of gaussians", 0.5);
36 RooRealVar sigma2(
"sigma2",
"width of gaussians", 1);
38 RooGaussian sig1(
"sig1",
"Signal component 1",
x, mean, sigma1);
39 RooGaussian sig2(
"sig2",
"Signal component 2",
x, mean, sigma2);
47 RooRealVar sig1frac(
"sig1frac",
"fraction of component 1 in signal", 0.8, 0., 1.);
51 RooRealVar bkgfrac(
"bkgfrac",
"fraction of background", 0.5, 0., 1.);
75 RooChi2Var chi2_lowstat(
"chi2_lowstat",
"chi2", model, *dhsmall);
76 cout << chi2_lowstat.getVal() << endl;
RooAbsData * reduce(const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg(), const RooCmdArg &arg7=RooCmdArg(), const RooCmdArg &arg8=RooCmdArg())
Create a reduced copy of this dataset.
RooAddPdf is an 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.
RooChi2Var implements a simple calculation from a binned dataset and a PDF.
The RooDataHist is a container class to hold N-dimensional binned data.
RooDataSet is a container class to hold unbinned data.
RooDataHist * binnedClone(const char *newName=0, const char *newTitle=0) const
Return binned clone of this dataset.
RooRealVar represents a variable that can be changed from the outside.
RooCmdArg EventRange(Int_t nStart, Int_t nStop)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...