Basic functionality: adding boxes with parameters, statistics to RooPlots, decorating with arrows, text etc... 
 
  
 
{
   
   
 
   
 
   
 
   
   std::unique_ptr<RooDataSet> 
data{gauss.generate(
x, 1000)};
 
 
   
   gauss.fitTo(*
data, PrintLevel(-1));
 
 
   
   
 
   
   RooPlot *frame = 
x.
frame(Name(
"xframe"), Title(
"RooPlot with decorations"), Bins(40));
 
   gauss.plotOn(frame);
 
   
   
 
   
   gauss.paramOn(frame, Layout(0.55));
 
   
   
 
   
   data->statOn(frame, Layout(0.55, 0.99, 0.8));
 
 
   
   
 
   
 
   
 
   
   
 
   TFile f(
"rf106_plotdecoration.root", 
"RECREATE");
 
 
   
   
   
 
   new TCanvas(
"rf106_plotdecoration", 
"rf106_plotdecoration", 600, 600);
 
   gPad->SetLeftMargin(0.15);
 
}
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
 
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 addObject(TObject *obj, Option_t *drawOptions="", bool invisible=false)
Add a generic object to this plot.
 
void Draw(Option_t *options=nullptr) override
Draw this plot and all of the elements it contains.
 
Variable that can be changed from the outside.
 
Draw all kinds of Arrows.
 
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
 
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
 
virtual Int_t Write(const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
 
Base class for several text objects.
 
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
 
   
[#1] INFO:Fitting -- RooAbsPdf::fitTo(gauss_over_gauss_Int[x]) fixing normalization set for coefficient determination to observables in data
[#1] INFO:Fitting -- using CPU computation library compiled with -mavx512
[#1] INFO:Fitting -- RooAddition::defaultErrorLevel(nll_gauss_over_gauss_Int[x]_gaussData) Summation contains a RooNLLVar, using its error level
[#1] INFO:Minimization -- RooAbsMinimizerFcn::setOptimizeConst: activating const optimization
[#1] INFO:Minimization -- RooAbsMinimizerFcn::setOptimizeConst: deactivating const optimization
- Date
 - July 2008 
 
- Author
 - Wouter Verkerke 
 
Definition in file rf106_plotdecoration.C.