33 void rf608_fitresultaspdf()
42 RooRealVar mean(
"mean",
"mean of g1 and g2",0,-1,1) ;
43 RooRealVar sigma_g1(
"sigma_g1",
"width of g1",2) ;
46 RooRealVar sigma_g2(
"sigma_g2",
"width of g2",4,3.0,5.0) ;
98 new TCanvas(
"rf608_fitresultaspdf_1",
"rf608_fitresultaspdf_1",600,600) ;
102 TCanvas*
c2 =
new TCanvas(
"rf608_fitresultaspdf_2",
"rf608_fitresultaspdf_2",900,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...
RooAddPdf is an efficient implementation of a sum of PDFs of the form.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
RooAbsPdf * createHessePdf(const RooArgSet ¶ms) const
Return a p.d.f that represents the fit result as a multi-variate probability densisty function on the...
TH1 * createHistogram(const char *varNameList, Int_t xbins=0, Int_t ybins=0, Int_t zbins=0) const
Create and fill a ROOT histogram TH1,TH2 or TH3 with the values of this function for the variables wi...
virtual RooAbsPdf * createProjection(const RooArgSet &iset)
Return a p.d.f that represent a projection of this p.d.f integrated over given observables.
The 3-D histogram classes derived from the 1-D histogram classes.
RooRealVar represents a fundamental (non-derived) real valued object.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
Service class for 2-Dim histogram classes.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
TH2F * createHistogram(const RooAbsRealLValue &var1, const RooAbsRealLValue &var2, const char *cuts="", const char *name="hist") const
Create a TH2F histogram of the distribution of the specified variable using this dataset.
RooDataSet is a container class to hold unbinned data.
RooCmdArg Save(Bool_t flag=kTRUE)
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
RooDataSet * generate(const RooArgSet &whatVars, Int_t nEvents, const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none())
Generate a new dataset containing the specified variables with events sampled from our distribution...