33 RooRealVar cosa(
"cosa",
"cos(alpha)", -1., 1.);
36 RooRealVar deltaGamma(
"deltaGamma",
"deltaGamma", 0.3);
37 RooFormulaVar coshG(
"coshGBasis",
"exp(-@0/ @1)*cosh(@0*@2/2)", {t, tau, deltaGamma});
38 RooFormulaVar sinhG(
"sinhGBasis",
"exp(-@0/ @1)*sinh(@0*@2/2)", {t, tau, deltaGamma});
45 RooProduct ampl1(
"ampl1",
"amplitude 1", {poly1, coshG});
46 RooProduct ampl2(
"ampl2",
"amplitude 2", {poly2, sinhG});
59 std::unique_ptr<RooDataSet>
data{pdf.generate({t, cosa}, 10000)};
89 TCanvas *
c =
new TCanvas(
"rf704_amplitudefit",
"rf704_amplitudefit", 800, 800);
92 gPad->SetLeftMargin(0.15);
96 gPad->SetLeftMargin(0.15);
100 gPad->SetLeftMargin(0.20);
102 hh_cos->
Draw(
"surf");
104 gPad->SetLeftMargin(0.20);
106 hh_sin->
Draw(
"surf");
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
RooArgList is a container object that can hold multiple RooAbsArg objects.
A RooPlot is a 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.
Class RooPolyVar is a RooAbsReal implementing a polynomial in terms of a list of RooAbsReal coefficie...
A RooProduct represents the product of a given set of RooAbsReal objects.
Implements a PDF constructed from a sum of functions:
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 SetLineColor(Color_t lcolor)
Set the line color.
TH1 is the base class of all histogram classes in ROOT.
void Draw(Option_t *option="") override
Draw this histogram with options.
RooCmdArg YVar(const RooAbsRealLValue &var, const RooCmdArg &arg={})
RooCmdArg PrintLevel(Int_t code)
RooCmdArg Components(Args_t &&... argsOrArgSet)
RooCmdArg Binning(const RooAbsBinning &binning)
RooCmdArg LineColor(Color_t color)
RooCmdArg LineStyle(Style_t style)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...