32 RooRealVar mean(
"mean",
"mean of g1 and g2", 0, -10, 10);
33 RooRealVar sigma_g1(
"sigma_g1",
"width of g1", 3);
36 RooRealVar sigma_g2(
"sigma_g2",
"width of g2", 4, 3.0, 6.0);
39 RooRealVar frac(
"frac",
"frac", 0.5, 0.0, 1.0);
43 std::unique_ptr<RooDataSet>
data{model.generate(
x, 1000)};
49 std::unique_ptr<RooAbsReal>
nll{model.createNLL(*
data,
NumCPU(2))};
68 std::unique_ptr<RooAbsReal> pll_frac{
nll->createProfile(frac)};
82 std::unique_ptr<RooAbsReal> pll_sigmag2{
nll->createProfile(sigma_g2)};
92 TCanvas *
c =
new TCanvas(
"rf605_profilell",
"rf605_profilell", 800, 400);
95 gPad->SetLeftMargin(0.15);
99 gPad->SetLeftMargin(0.15);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Efficient implementation of a sum of PDFs of the form.
RooArgList is a container object that can hold multiple RooAbsArg objects.
Wrapper class around ROOT::Fit:Fitter that provides a seamless interface between the minimizer functi...
int migrad()
Execute MIGRAD.
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.
Variable that can be changed from the outside.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
RooCmdArg Bins(Int_t nbin)
RooCmdArg NumCPU(Int_t nCPU, Int_t interleave=0)
RooCmdArg LineColor(Color_t color)
double nll(double pdf, double weight, int binnedL, int doBinOffset)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...