28 class TestBasic804 :
public RooFitTestUnit
31 TestBasic804(TFile* refFile,
Bool_t writeRef,
Int_t verbose) : RooFitTestUnit(
"MC Studies with aux. obs. constraints",refFile,writeRef,verbose) {} ;
72 mcs.generateAndFit(50,2000) ;
76 TH1* h_f_gen =
new TH1F(
"h_f_gen",
"",40,0,1) ;
77 mcs.fitParDataSet().fillHistogram(h_f_gen,*f_gen) ;
81 frame1->
SetTitle(
"Distribution of fitted f values") ;
85 frame1->
SetTitle(
"Distribution of f pull values") ;
87 regTH(h_f_gen,
"rf804_h_f_gen") ;
88 regPlot(frame1,
"rf804_plot1") ;
89 regPlot(frame2,
"rf804_plot2") ;
RooMCStudy is a help class to facilitate Monte Carlo studies such as 'goodness-of-fit' studies...
RooAddPdf is an efficient implementation of a sum of PDFs of the form.
static long int sum(long int i)
RooCmdArg Binned(Bool_t flag=kTRUE)
RooCmdArg PrintLevel(Int_t code)
RooProdPdf is an efficient implementation of a product of PDFs of the form.
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
void SetTitle(const char *name)
Set the title of the RooPlot to 'title'.
RooCmdArg Range(const char *rangeName, Bool_t adjustNorm=kTRUE)
RooCmdArg Silence(Bool_t flag=kTRUE)
RooCmdArg FitOptions(const char *opts)
RooRealVar represents a fundamental (non-derived) real valued object.
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
RooConstVar & RooConst(Double_t val)
RooCmdArg Bins(Int_t nbin)
RooPolynomial implements a polynomial p.d.f of the form By default coefficient a_0 is chosen to be 1...
RooCmdArg Constrain(const RooArgSet ¶ms)