49 std::unique_ptr<RooDataSet>
sigData(
g.generate(
x, 50));
50 std::unique_ptr<RooDataSet>
bkgData(
u.generate(
x, 1000));
61 std::unique_ptr<RooDataHist>
dh_sig(
g.generateBinned(
x, 50) );
62 std::unique_ptr<RooDataHist>
dh_bkg(
u.generateBinned(
x, 10000) );
154 auto frame =
x.frame(
Title(
"No template uncertainties"));
170 "No template uncertainties",
171 "are taken into account.",
172 "This leads to low errors",
173 "for the parameters A, since",
174 "the only source of errors",
175 "are the data statistics."}) {
182 frame =
x.frame(
Title(
"Barlow Beeston for Sig & Bkg separately"));
197 "With gamma parameters, the",
198 "signal & background templates",
199 "can adapt to the data.",
200 "Note how the blue signal",
201 "template changes its shape.",
202 "This leads to higher errors",
203 "of the scale parameters A."}) {
209 frame =
x.frame(
Title(
"Barlow Beeston light for (Sig+Bkg)"));
224 "When signal and background",
225 "template share one gamma para-",
226 "meter per bin, they adapt less.",
227 "The errors of the A parameters",
228 "also shrink slightly."}) {
234 std::cout <<
"Asig [normal ] = " <<
Asig0.getVal() <<
" +/- " <<
Asig0.getError() << std::endl;
235 std::cout <<
"Asig [BB ] = " <<
Asig1.getVal() <<
" +/- " <<
Asig1.getError() << std::endl;
236 std::cout <<
"Asig [BBlight] = " <<
Asig2.getVal() <<
" +/- " <<
Asig2.getError() << std::endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char text
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Container class to hold unbinned data.
The RooHistConstraint implements constraint terms for a binned PDF with statistical uncertainties.
A real-valued function sampled from a multidimensional histogram.
A histogram function that assigns scale parameters to every bin.
Efficient implementation of a product of PDFs of the form.
Implements a PDF constructed from a sum of functions:
Variable that can be changed from the outside.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
virtual TObject * DrawClone(Option_t *option="") const
Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).
A Pave (see TPave) with text, lines or/and boxes inside.
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
void Clear(Option_t *option="") override
Clear all lines in this pavetext.
virtual void SetBorderSize(Int_t bordersize=4)
Sets the border size of the TPave box and shadow.
RooCmdArg Parameters(const RooArgSet ¶ms)
RooCmdArg Conditional(const RooArgSet &pdfSet, const RooArgSet &depSet, bool depsAreCond=false)
RooCmdArg Save(bool flag=true)
RooCmdArg PrintLevel(Int_t code)
RooCmdArg Components(Args_t &&... argsOrArgSet)
RooCmdArg LineColor(TColorNumber color)
RooCmdArg VisualizeError(const RooDataSet ¶mData, double Z=1)
RooCmdArg MarkerColor(TColorNumber color)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...