23void rf610_visualerror()
44 std::unique_ptr<RooAbsData>
d{model.generateBinned(
x, 1000)};
53 RooPlot *frame =
x.frame(
Bins(40),
Title(
"P.d.f with visualized 1-sigma error band"));
103 RooPlot *frame2 =
x.frame(
Bins(40),
Title(
"Visualization of 2-sigma partial error from (m,m2)"));
119 model.plotOn(frame2);
124 RooPlot *frame3 =
x.frame(
Bins(40),
Title(
"Visualization of 2-sigma partial error from (s,s2)"));
130 model.plotOn(frame3);
135 RooPlot *frame4 =
x.frame(
Bins(40),
Title(
"Visualization of 2-sigma partial error from fsig"));
141 model.plotOn(frame4);
145 TCanvas *
c =
new TCanvas(
"rf610_visualerror",
"rf610_visualerror", 800, 800);
148 gPad->SetLeftMargin(0.15);
152 gPad->SetLeftMargin(0.15);
156 gPad->SetLeftMargin(0.15);
160 gPad->SetLeftMargin(0.15);
Efficient implementation of a sum of PDFs of the form.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Plot frame and a container for graphics objects within that frame.
virtual void SetMinimum(double minimum=-1111)
Set minimum value of Y axis.
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.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
RooCmdArg Title(const char *name)
RooCmdArg Bins(Int_t nbin)
RooCmdArg Save(bool flag=true)
RooCmdArg PrintLevel(Int_t code)
RooCmdArg Components(Args_t &&... argsOrArgSet)
RooCmdArg FillColor(TColorNumber color)
RooCmdArg DrawOption(const char *opt)
RooCmdArg LineColor(TColorNumber color)
RooCmdArg LineWidth(Width_t width)
RooCmdArg VisualizeError(const RooDataSet ¶mData, double Z=1)
RooCmdArg LineStyle(Style_t style)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...