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))};
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
Abstract base class for objects that represent a real value and implements functionality common to al...
virtual RooFit::OwningPtr< RooAbsReal > createProfile(const RooArgSet ¶msOfInterest)
Create a RooProfileLL object that eliminates all nuisance parameters in the present function.
virtual RooPlot * plotOn(RooPlot *frame, const RooCmdArg &arg1={}, const RooCmdArg &arg2={}, const RooCmdArg &arg3={}, const RooCmdArg &arg4={}, const RooCmdArg &arg5={}, const RooCmdArg &arg6={}, const RooCmdArg &arg7={}, const RooCmdArg &arg8={}, const RooCmdArg &arg9={}, const RooCmdArg &arg10={}) const
Plot (project) PDF on specified frame.
Efficient implementation of a sum of PDFs of the form.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooMinimizer is a wrapper class around ROOT::Fit:Fitter that provides a seamless interface between th...
int migrad()
Execute MIGRAD.
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.
virtual void SetMinimum(double minimum=-1111)
Set minimum value of Y axis.
virtual void SetMaximum(double maximum=-1111)
Set maximum value of Y axis.
void Draw(Option_t *options=nullptr) override
Draw this plot and all of the elements it contains.
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.
RooCmdArg Bins(Int_t nbin)
RooCmdArg NumCPU(Int_t nCPU, Int_t interleave=0)
RooCmdArg LineColor(Color_t color)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...