24void rf109_chi2residpull()
58 cout <<
"chi^2 = " << frame1->
chiSquare() << endl;
77 TCanvas *
c =
new TCanvas(
"rf109_chi2residpull",
"rf109_chi2residpull", 900, 300);
80 gPad->SetLeftMargin(0.15);
84 gPad->SetLeftMargin(0.15);
88 gPad->SetLeftMargin(0.15);
virtual RooPlot * plotOn(RooPlot *frame, const RooCmdArg &arg1=RooCmdArg::none(), 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(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none()) const
RooDataSet is a container class to hold unbinned data.
A RooHist is a graphical representation of binned data based on the TGraphAsymmErrors class.
A RooPlot is a plot frame and a container for graphics objects within that frame.
RooHist * residHist(const char *histname=0, const char *pdfname=0, bool normalize=false, bool useAverage=true) const
Return a RooHist (derives from TGraphAsymErrors) containing the residuals of histogram 'histname' wit...
Double_t chiSquare(int nFitParam=0) const
Shortcut for RooPlot::chiSquare(const char* pdfname, const char* histname, int nFitParam=0)
static RooPlot * frame(const RooAbsRealLValue &var, Double_t xmin, Double_t xmax, Int_t nBins)
Create a new frame for a given variable in x.
void addPlotable(RooPlotable *plotable, Option_t *drawOptions="", Bool_t invisible=kFALSE, Bool_t refreshNorm=kFALSE)
Add the specified plotable object to our plot.
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
RooHist * pullHist(const char *histname=0, const char *pdfname=0, bool useAverage=true) const
Uses residHist() and sets normalize=true.
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.
RooConstVar & RooConst(Double_t val)
RooCmdArg Bins(Int_t nbin)
RooCmdArg DataError(Int_t)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...