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") ;
RooCmdArg Binned(Bool_t flag=kTRUE)
RooCmdArg PrintLevel(Int_t code)
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
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)
RooConstVar & RooConst(Double_t val)
RooCmdArg Bins(Int_t nbin)
RooCmdArg Constrain(const RooArgSet ¶ms)