38 std::unique_ptr<RooDataSet>
data{gauss.generate(
x, 10000)};
57 cout <<
"chi^2 = " << frame1->
chiSquare() << endl;
76 TCanvas *
c =
new TCanvas(
"rf109_chi2residpull",
"rf109_chi2residpull", 900, 300);
79 gPad->SetLeftMargin(0.15);
83 gPad->SetLeftMargin(0.15);
87 gPad->SetLeftMargin(0.15);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Graphical representation of binned data based on the TGraphAsymmErrors class.
Plot frame and a container for graphics objects within that frame.
static RooPlot * frame(const RooAbsRealLValue &var, double xmin, double xmax, Int_t nBins)
Create a new frame for a given variable in x.
double chiSquare(int nFitParam=0) const
Shortcut for RooPlot::chiSquare(const char* pdfname, const char* histname, int nFitParam=nullptr)
void Draw(Option_t *options=nullptr) override
Draw this plot and all of the elements it contains.
RooHist * residHist(const char *histname=nullptr, const char *pdfname=nullptr, bool normalize=false, bool useAverage=true) const
Return a RooHist (derives from TGraphAsymErrors) containing the residuals of a histogram.
RooHist * pullHist(const char *histname=nullptr, const char *pdfname=nullptr, bool useAverage=true) const
Uses residHist() and sets normalize=true.
void addPlotable(RooPlotable *plotable, Option_t *drawOptions="", bool invisible=false, bool refreshNorm=false)
Add the specified plotable object to our plot.
Variable that can be changed from the outside.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
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...