void rf609_xychi2fit()
{
for (int i = 0; i <= 10; i++) {
x.setError(i < 5 ? 0.5 / 1. : 1.0 / 1.);
y =
x.getVal() *
x.getVal() + 4 * std::abs(
trnd.Gaus());
y.setError(sqrt(
y.getVal()));
}
fit1->Print();
new TCanvas(
"rf609_xychi2fit",
"rf609_xychi2fit", 600, 600);
gPad->SetLeftMargin(0.15);
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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.
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.
A RooAbsReal implementing a polynomial in terms of a list of RooAbsReal coefficients.
Variable that can be changed from the outside.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
Random number generator class based on M.
RooCmdArg YVar(const RooAbsRealLValue &var, const RooCmdArg &arg={})
RooCmdArg Save(bool flag=true)
RooCmdArg Integrate(bool flag)
RooCmdArg PrintLevel(Int_t code)
RooCmdArg LineColor(TColorNumber color)
RooCmdArg LineStyle(Style_t style)
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
RooFitResult: minimized FCN value: 1.17354, estimated distance to minimum: 3.83787e-05
covariance matrix quality: Full, accurate covariance matrix
Status : MINIMIZE=0 HESSE=0
Floating Parameter FinalValue +/- Error
-------------------- --------------------------
a -6.4539e-02 +/- 5.85e-01
b 2.9760e-01 +/- 4.74e-01
c 1.0442e+00 +/- 9.06e-02
[#1] INFO:Minimization -- RooAbsMinimizerFcn::setOptimizeConst: activating const optimization
[#1] INFO:Minimization -- RooAbsMinimizerFcn::setOptimizeConst: deactivating const optimization
RooFitResult: minimized FCN value: 2.81819, estimated distance to minimum: 5.77434e-06
covariance matrix quality: Full, accurate covariance matrix
Status : MINIMIZE=0 HESSE=0
Floating Parameter FinalValue +/- Error
-------------------- --------------------------
a -5.5529e-02 +/- 3.37e-01
b 3.6741e-02 +/- 4.64e-01
c 1.0407e+00 +/- 4.98e-02