Demonstrates non central chi-square. 
  
[#0] WARNING:InputArguments -- The parameter 'x' with range [0, 50] of the RooChiSquarePdf 'cs' exceeds the safe range of (0, inf). Advise to limit its range.
[#0] WARNING:InputArguments -- The parameter 'k' with range [0, 5] of the RooChiSquarePdf 'cs' exceeds the safe range of (0, inf). Advise to limit its range.
[#1] INFO:InputArguments -- RooNonCentralChiSquare sum being forced
[#0] WARNING:Eval -- RooNonCentralChiSquare did not converge: for x=36 k=2.01, lambda=5 fractional error = 0.00108172
 either adjust tolerance with SetErrorTolerance(tol) or max_iter with SetMaxIter(max_it)
   
void TestNonCentral()
{
 
   
   w.factory(
"NonCentralChiSquare::nc(x[0,50],k[1.99,0,5],lambda[5])");
 
   
   w.factory(
"NonCentralChiSquare::ncc(x,kk[2.01,0,5],lambda)");
 
   
   w.factory(
"NonCentralChiSquare::nccc(x,kk,lambda)");
 
 
   
   w.factory(
"ChiSquarePdf::cs(x,k)");
 
 
   
 
   std::unique_ptr<RooDataSet> 
ncdata{
w.pdf(
"nc")->generate(*
w.var(
"x"), 100)};
 
   std::unique_ptr<RooDataSet> 
csdata{
w.pdf(
"cs")->generate(*
w.var(
"x"), 100)};
 
}
winID h TVirtualViewer3D TVirtualGLPainter char TVirtualGLPainter plot
 
The PDF of the Non-Central Chi Square distribution for n degrees of freedom.
 
Plot frame and a container for graphics objects within that frame.
 
Persistable container for RooFit projects.
 
RooCmdArg LineColor(TColorNumber color)
 
RooCmdArg MarkerColor(TColorNumber color)
 
RooCmdArg LineStyle(Style_t style)
 
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
 
- Author
 - Lorenzo Moneta 
 
Definition in file TestNonCentral.C.