28void rf105_funcbinding()
42 RooPlot* frame1 =
x.frame(
Title(
"TMath::Erf bound as RooFit function")) ;
43 errorFunc->
plotOn(frame1) ;
63 RooPlot* frame2 =
x2.frame(
Title(
"ROOT::Math::Beta bound as RooFit pdf")) ;
64 data->plotOn(frame2) ;
65 beta->plotOn(frame2) ;
73 TF1 *fa1 =
new TF1(
"fa1",
"sin(x)/x",0,10);
85 RooPlot* frame3 =
x3.frame(
Title(
"TF1 bound as RooFit function")) ;
90 TCanvas*
c =
new TCanvas(
"rf105_funcbinding",
"rf105_funcbinding",1200,400) ;
static const double x2[5]
static const double x3[11]
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
virtual RooPlot * plotOn(RooPlot *frame, const RooCmdArg &arg1=RooCmdArg(), const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg(), const RooCmdArg &arg7=RooCmdArg(), const RooCmdArg &arg8=RooCmdArg(), const RooCmdArg &arg9=RooCmdArg(), const RooCmdArg &arg10=RooCmdArg()) const
Plot (project) PDF on specified frame.
RooDataSet is a container class to hold unbinned data.
A RooPlot is a plot frame and a container for graphics objects within that frame.
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
RooRealVar represents a fundamental (non-derived) real valued object.
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...
double beta_pdf(double x, double a, double b)
Probability density function of the beta distribution.
double beta(double x, double y)
Calculates the beta function.
RooAbsPdf * bindPdf(const char *name, CFUNCD1D func, RooAbsReal &x)
RooAbsReal * bindFunction(const char *name, CFUNCD1D func, RooAbsReal &x)
Double_t Erf(Double_t x)
Computation of the error function erf(x).