void rf315_projectpdf()
{
RooRealVar sigmax(
"sigmax",
"width of gaussian", 0.5);
RooGaussian gaussx(
"gaussx",
"Gaussian in x with shifting mean in y",
x, fy, sigmax);
data->plotOn(frame);
TH1 *hh = model.createHistogram(
"x,y");
TCanvas *
c =
new TCanvas(
"rf315_projectpdf",
"rf315_projectpdf", 800, 400);
gPad->SetLeftMargin(0.15);
gPad->SetLeftMargin(0.20);
}
Abstract interface for all probability density functions.
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 override
Helper calling plotOn(RooPlot*, RooLinkedList&) const.
RooFit::OwningPtr< RooFitResult > fitTo(RooAbsData &data, CmdArgs_t const &... cmdArgs)
Fit PDF to given dataset.
virtual RooFit::OwningPtr< RooDataHist > generateBinned(const RooArgSet &whatVars, double nEvents, const RooCmdArg &arg1, const RooCmdArg &arg2={}, const RooCmdArg &arg3={}, const RooCmdArg &arg4={}, const RooCmdArg &arg5={}) const
As RooAbsPdf::generateBinned(const RooArgSet&, const RooCmdArg&,const RooCmdArg&, const RooCmdArg&,...
static RooNumIntConfig * defaultIntegratorConfig()
Returns the default numeric integration configuration for all RooAbsReals.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
void setEpsRel(double newEpsRel)
Set relative convergence criteria (convergence if std::abs(Err)/abs(Int)<newEpsRel).
void setEpsAbs(double newEpsAbs)
Set absolute convergence criteria (convergence if std::abs(Err)<newEpsAbs).
Plot frame and a container for graphics objects within that frame.
void Draw(Option_t *options=nullptr) override
Draw this plot and all of the elements it contains.
A RooAbsReal implementing a polynomial in terms of a list of RooAbsReal coefficients.
Efficient implementation of a product of PDFs of the form.
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 Conditional(const RooArgSet &pdfSet, const RooArgSet &depSet, bool depsAreCond=false)
RooCmdArg PrintLevel(Int_t code)
RooCmdArg Verbose(bool flag=true)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
[#0] WARNING:InputArguments -- The parameter 'sigmax' with range [-inf, inf] of the RooGaussian 'gaussx' exceeds the safe range of (0, inf). Advise to limit its range.
[#1] INFO:NumericIntegration -- RooRealIntegral::init(SPECINT[gaussy_NORM[y]_X_gaussx_NORM[x]]_Int[y]) using numeric integrator RooIntegrator1D to calculate Int(y)
[#1] INFO:Fitting -- RooAbsPdf::fitTo(model_Int[y]_Norm[x,y]_wrapped_pdf) fixing normalization set for coefficient determination to observables in data
[#1] INFO:Fitting -- using generic CPU library compiled with no vectorizations
[#1] INFO:Fitting -- Creation of NLL object took 1.40467 ms
[#1] INFO:Fitting -- RooAddition::defaultErrorLevel(nll_model_Int[y]_Norm[x,y]_wrapped_pdf_genData) Summation contains a RooNLLVar, using its error level
[#1] INFO:Minimization -- RooAbsMinimizerFcn::setOptimizeConst: activating const optimization
[#0] WARNING:Minimization -- RooAbsMinimizerFcn::synchronize: WARNING: no initial error estimate available for a1: using 0.4
[#1] INFO:Minimization -- [fitFCN] No discrete parameters, performing continuous minimization only
[#1] INFO:NumericIntegration -- RooRealIntegral::init(SPECINT[gaussy_NORM[y]_X_gaussx_NORM[x]]_Int[y]) using numeric integrator RooIntegrator1D to calculate Int(y)
prevFCN = 12037.78496 a1=-1.469,
prevFCN = 1900.132597 a1=-1.531,
prevFCN = 1901.591671 a1=-1.497,
prevFCN = 1900.088181 a1=-1.503,
prevFCN = 1900.238998 a1=-1.497,
prevFCN = 1900.088181 a1=-1.485,
prevFCN = 1899.958806 a1=-1.491,
prevFCN = 1899.994382 a1=-1.484,
prevFCN = 1899.958577 a1=-1.485,
prevFCN = 1899.959183 a1=-1.484,
prevFCN = 1899.958511 a1=-1.485,
prevFCN = 1899.960007 a1=-1.484,
prevFCN = 1899.958497 a1=-1.483,
prevFCN = 1899.958952 a1=-1.485,
prevFCN = 1899.95895 a1=-1.484,
prevFCN = 1899.958497 a1=-1.483,
prevFCN = 1899.958952 a1=-1.485,
prevFCN = 1899.95895 a1=-1.484,
prevFCN = 1899.958515 a1=-1.484,
prevFCN = 1899.958515 a1=-1.484,
prevFCN = 1899.958498 a1=-1.484,
prevFCN = 1899.958498 a1=-1.484,
prevFCN = 1899.958497 a1=-1.484,
prevFCN = 1899.958498 a1=-1.484,
prevFCN = 1899.958498 a1=-1.484,
prevFCN = 1899.958497 a1=-1.484,
prevFCN = 1899.958497 a1=-1.484, [#1] INFO:Minimization -- RooAbsMinimizerFcn::setOptimizeConst: deactivating const optimization
[#1] INFO:NumericIntegration -- RooRealIntegral::init(SPECINT[gaussy_NORM[y]_X_gaussx_NORM[x]]_Int[y]) using numeric integrator RooIntegrator1D to calculate Int(y)