25void rf804_mcstudy_constr()
60 mcs.generateAndFit(500, 2000);
63 TH1 *h_f_gen = mcs.fitParDataSet().createHistogram(
"f_gen", -40);
67 frame1->
SetTitle(
"Distribution of fitted f values");
71 frame1->
SetTitle(
"Distribution of f pull values");
73 TCanvas *
c =
new TCanvas(
"rf804_mcstudy_constr",
"rf804_mcstudy_constr", 1200, 400);
76 gPad->SetLeftMargin(0.15);
80 gPad->SetLeftMargin(0.15);
84 gPad->SetLeftMargin(0.15);
RooAddPdf is an efficient implementation of a sum of PDFs of the form.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooMCStudy is a helper class to facilitate Monte Carlo studies such as 'goodness-of-fit' studies,...
A RooPlot is a plot frame and a container for graphics objects within that frame.
void SetTitle(const char *name)
Set the title of the RooPlot to 'title'.
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
RooPolynomial implements a polynomial p.d.f of the form.
RooProdPdf is an efficient implementation of a product of PDFs of the form.
RooRealVar represents a fundamental (non-derived) real valued object.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title Offset is a correction factor with respect to the "s...
virtual void Draw(Option_t *option="")
Draw this histogram with options.
Template specialisation used in RooAbsArg:
RooCmdArg Binned(Bool_t flag=kTRUE)
RooCmdArg Constrain(const RooArgSet ¶ms)
RooCmdArg FitGauss(Bool_t flag=kTRUE)
RooCmdArg Silence(Bool_t flag=kTRUE)
RooConstVar & RooConst(Double_t val)
RooCmdArg PrintLevel(Int_t code)
RooCmdArg FitOptions(const char *opts)
RooCmdArg Bins(Int_t nbin)
static constexpr double s
static long int sum(long int i)