62 mcs.generateAndFit(500, 2000);
65 TH1 *h_f_gen = mcs.fitParDataSet().createHistogram(
"f_gen",
AutoBinning(40));
69 frame1->
SetTitle(
"Distribution of fitted f values");
73 frame1->
SetTitle(
"Distribution of f pull values");
75 TCanvas *
c =
new TCanvas(
"rf804_mcstudy_constr",
"rf804_mcstudy_constr", 1200, 400);
78 gPad->SetLeftMargin(0.15);
82 gPad->SetLeftMargin(0.15);
86 gPad->SetLeftMargin(0.15);
winID h TVirtualViewer3D TVirtualGLPainter p
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) 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.
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 variable that can be changed from the outside.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
TH1 is the base class of all histogram classes in ROOT.
void Draw(Option_t *option="") override
Draw this histogram with options.
RooCmdArg FitGauss(bool flag=true)
RooCmdArg FitOptions(const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none())
RooCmdArg AutoBinning(Int_t nbins=100, double marginFactor=0.1)
RooConstVar & RooConst(double val)
RooCmdArg Silence(bool flag=true)
RooCmdArg Binned(bool flag=true)
RooCmdArg Bins(Int_t nbin)
RooCmdArg Constrain(const RooArgSet ¶ms)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
static uint64_t sum(uint64_t i)