28 void rf609_xychi2fit()
45 for (
int i=0 ; i<=10 ; i++) {
49 x.setError( i<5 ? 0.5/1. : 1.0/1. ) ;
53 y.setError(
sqrt(
y.getVal())) ;
69 RooPlot* frame =
x.frame(
Title(
"Chi^2 fit of function set of (X#pmdX,Y#pmdY) values")) ;
70 dxy.plotOnXY(frame,
YVar(
y)) ;
73 f.chi2FitTo(dxy,
YVar(
y)) ;
87 new TCanvas(
"rf609_xychi2fit",
"rf609_xychi2fit",600,600) ;
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title Offset is a correction factor with respect to the "s...
RooCmdArg LineColor(Color_t color)
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
RooCmdArg Title(const char *name)
RooCmdArg StoreError(const RooArgSet &aset)
RooCmdArg LineStyle(Style_t style)
Class RooPolyVar is a RooAbsReal implementing a polynomial in terms of a list of RooAbsReal coefficie...
RooRealVar represents a fundamental (non-derived) real valued object.
VecExpr< UnaryOp< Fabs< T >, VecExpr< A, T, D >, T >, T, D > fabs(const VecExpr< A, T, D > &rhs)
RooCmdArg Integrate(Bool_t flag)
R__EXTERN TRandom * gRandom
RooDataSet is a container class to hold unbinned data.
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
RooCmdArg YVar(const RooAbsRealLValue &var, const RooCmdArg &arg=RooCmdArg::none())
RooConstVar & RooConst(Double_t val)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.