29void rf804_mcstudy_constr()
66 mcs.generateAndFit(500,2000) ;
69 TH1* h_f_gen = mcs.fitParDataSet().createHistogram(
"f_gen",-40) ;
73 frame1->
SetTitle(
"Distribution of fitted f values") ;
77 frame1->
SetTitle(
"Distribution of f pull values") ;
81 TCanvas*
c =
new TCanvas(
"rf804_mcstudy_constr",
"rf804_mcstudy_constr",1200,400) ;
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 help 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.
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)