40 RooRealVar mean(
"mean",
"mean of g1 and g2", 0, -1, 1);
41 RooRealVar sigma_g1(
"sigma_g1",
"width of g1", 2);
44 RooRealVar sigma_g2(
"sigma_g2",
"width of g2", 4, 3.0, 5.0);
47 RooRealVar frac(
"frac",
"frac", 0.5, 0.0, 1.0);
89 new TCanvas(
"rf608_fitresultaspdf_1",
"rf608_fitresultaspdf_1", 600, 600);
93 TCanvas *
c2 =
new TCanvas(
"rf608_fitresultaspdf_2",
"rf608_fitresultaspdf_2", 900, 600);
96 gPad->SetLeftMargin(0.15);
98 hh_mean_sigmag2->
Draw(
"surf3");
100 gPad->SetLeftMargin(0.15);
102 hh_sigmag2_frac->
Draw(
"surf3");
104 gPad->SetLeftMargin(0.15);
106 hh_mean_frac->
Draw(
"surf3");
109 TH1 *tmp1 =
d->createHistogram(
"mean,sigma_g2", 50, 50);
110 TH1 *tmp2 =
d->createHistogram(
"sigma_g2,frac", 50, 50);
111 TH1 *tmp3 =
d->createHistogram(
"mean,frac", 50, 50);
114 gPad->SetLeftMargin(0.15);
118 gPad->SetLeftMargin(0.15);
122 gPad->SetLeftMargin(0.15);
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())
See RooAbsPdf::generate(const RooArgSet&,const RooCmdArg&,const RooCmdArg&,const RooCmdArg&,...
virtual RooAbsPdf * createProjection(const RooArgSet &iset)
Return a p.d.f that represent a projection of this p.d.f integrated over given observables.
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 w...
RooAddPdf is an efficient implementation of a sum of PDFs of the form.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooDataSet is a container class to hold unbinned data.
RooFitResult is a container class to hold the input and output of a PDF fit to a dataset.
RooRealVar represents a variable that can be changed from the outside.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
TH1 is the base class of all histogram classes in ROOT.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
Service class for 2-Dim histogram classes.
The 3-D histogram classes derived from the 1-D histogram classes.
RooCmdArg Save(Bool_t flag=kTRUE)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...