55  std::unique_ptr<RooDataSet> 
data(pdf.generate(
x, 10000));
 
   80  std::unique_ptr<RooFitResult> fitWithoutRecovery{pdf.fitTo(*
data, 
RooFit::Save(),
 
   93  std::cout << 
"\n\n\n-------------- Starting second fit ---------------\n\n" << std::endl;
 
  100  std::unique_ptr<RooFitResult> fitWithRecovery{pdf.fitTo(*
data, 
RooFit::Save(),
 
  114  fitWithoutRecovery->Print();
 
  115  std::cout << 
"Without recovery, the fitter encountered " << fitWithoutRecovery->numInvalidNLL()
 
  116      << 
" invalid function values. The parameters are unchanged." << std::endl;
 
  118  fitWithRecovery->Print();
 
  119  std::cout << 
"With recovery, the fitter encountered " << fitWithRecovery->numInvalidNLL()
 
  120      << 
" invalid function values, but the parameters are fitted." << std::endl;
 
  125  legend->
AddEntry(
"data", 
"Data", 
"P");
 
  126  legend->
AddEntry(
"noRecovery", 
"Without recovery (cannot be plotted)", 
"L");
 
  127  legend->
AddEntry(
"recovery", 
"With recovery", 
"L");
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
 
RooArgSet is a container object that can hold multiple RooAbsArg objects.
 
static RooMsgService & instance()
Return reference to singleton instance.
 
StreamConfig & getStream(Int_t id)
 
A RooPlot is a 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.
 
void Draw(Option_t *options=nullptr) override
Draw this plot and all of the elements it contains.
 
RooPolynomial implements a polynomial p.d.f of the form.
 
RooRealVar represents a variable that can be changed from the outside.
 
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
 
This class displays a legend box (TPaveText) containing several legend entries.
 
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.
 
void Draw(Option_t *option="") override
Draw this legend with its current attributes.
 
virtual void SetBorderSize(Int_t bordersize=4)
 
RooCmdArg Save(bool flag=true)
 
RooCmdArg PrintEvalErrors(Int_t numErrors)
 
RooCmdArg PrintLevel(Int_t code)
 
RooCmdArg RecoverFromUndefinedRegions(double strength)
When parameters are chosen such that a PDF is undefined, try to indicate to the minimiser how to leav...
 
RooCmdArg LineColor(Color_t color)
 
RooCmdArg Name(const char *name)
 
void removeTopic(RooFit::MsgTopic oldTopic)