49 using namespace RooFit;
53 w.
factory(
"Uniform::u(x[0,1])");
55 w.
factory(
"ExtendPdf::p(u,mu)");
67 cout <<
"variance = " << (cov.
Determinant()) << endl;
85 TCanvas*
c1 =
new TCanvas;
99 w.
factory(
"Gaussian::g(x[0,-20,20],mu[0,-5,5],sigma[1,0,10])");
101 w.
factory(
"ExtendPdf::p(g,n)");
112 cout <<
"variance = " << (cov.
Determinant()) << endl;
126 pi.getParameters(*temp)->Print();
131 TCanvas*
c1 =
new TCanvas;
148 w.
factory(
"Gaussian::g(x[0,-20,20],mu[0,-5,5],sigma[1,1,5])");
150 w.
factory(
"ExtendPdf::p(g,n)");
163 cout <<
"variance = " << (cov.
Determinant()) << endl;
176 pi.specialIntegratorConfig(
kTRUE)->getConfigSection(
"RooIntegrator1D").setRealValue(
"maxSteps",3);
179 pi.getParameters(*temp)->Print();
185 TCanvas*
c1 =
new TCanvas;
203 w.
factory(
"Gaussian::g(x[0,-20,20],mu[0,-5,5],sigma[1,1,5])");
205 w.
factory(
"ExtendPdf::p(g,n)");
218 cout <<
"variance = " << (cov.
Determinant()) << endl;
231 pi.specialIntegratorConfig(
kTRUE)->getConfigSection(
"RooIntegrator1D").setRealValue(
"maxSteps",3);
234 pi.getParameters(*temp)->Print();
237 TCanvas*
c1 =
new TCanvas;
239 Jeff2d->
Draw(
"surf");
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
void TestJeffreysGaussMean()
void TestJeffreysGaussSigma()
RooCmdArg LineColor(Color_t color)
virtual RooDataHist * generateBinned(const RooArgSet &whatVars, Double_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())
Generate a new dataset containing the specified variables with events sampled from our distribution...
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
void plot(TString fname="data.root", TString var0="var0", TString var1="var1")
RooDataSet is a container class to hold N-dimensional binned data.
virtual Double_t Determinant() const
RooAbsPdf * pdf(const char *name) const
Retrieve p.d.f (RooAbsPdf) with given name. A null pointer is returned if not found.
RooCmdArg LineStyle(Style_t style)
void setBins(Int_t nBins, const char *name=0)
RooCmdArg ExpectedData(Bool_t flag=kTRUE)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual RooPlot * plotOn(RooPlot *frame, const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none(), const RooCmdArg &arg9=RooCmdArg::none(), const RooCmdArg &arg10=RooCmdArg::none()) const
Plot (project) PDF on specified frame.
void TestJeffreysGaussMeanAndSigma()
void setConstant(Bool_t value=kTRUE)
Bool_t defineSet(const char *name, const RooArgSet &aset, Bool_t importMissing=kFALSE)
Define a named RooArgSet with given constituents.
const TMatrixDSym & covarianceMatrix() const
Return covariance matrix.
RooPlot * frame(const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none()) const
RooRealVar * var(const char *name) const
Retrieve real-valued variable (RooRealVar) with given name. A null pointer is returned if not found...
RooCmdArg SumW2Error(Bool_t flag)
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
RooCmdArg YVar(const RooAbsRealLValue &var, const RooCmdArg &arg=RooCmdArg::none())
TMatrixTSym< Element > & Invert(Double_t *det=0)
Invert the matrix and calculate its determinant Notice that the LU decomposition is used instead of B...
RooFactoryWSTool & factory()
Return instance to factory tool.
RooCmdArg Save(Bool_t flag=kTRUE)
const RooArgSet * set(const char *name)
Return pointer to previously defined named set with given nmame If no such set is found a null pointe...
RooGenericPdf is a concrete implementation of a probability density function, which takes a RooArgLis...
virtual RooFitResult * fitTo(RooAbsData &data, const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none())
Fit PDF to given dataset.
The RooWorkspace is a persistable container for RooFit projects.
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
RooCmdArg Binning(const RooAbsBinning &binning)