Basic functionality: adding boxes with parameters, statistics to RooPlots, decorating with arrows, text etc...
{
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
RooDataSet is a container class to hold unbinned data.
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 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.
RooRealVar represents a 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.
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
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: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.