'BASIC FUNCTIONALITY' RooFit tutorial macro #110
Examples on normalization of p.d.f.s, integration of p.d.fs, construction of cumulative distribution functions from p.d.f.s in one dimension
Processing /mnt/build/workspace/root-makedoc-v610/rootspi/rdoc/src/v6-10-00-patches/tutorials/roofit/rf110_normintegration.C...
void rf110_normintegration()
{
cout << "gx = " << gx.getVal() << endl ;
cout << "gx_Norm[x] = " << gx.getVal(&nset) << endl ;
cout <<
"gx_Int[x] = " << igx->
getVal() << endl ;
x.setRange("signal",-5,5) ;
cout <<
"gx_Int[x|signal]_Norm[x] = " << igx_sig->
getVal() << endl ;
RooPlot* frame = x.frame(
Title(
"c.d.f of Gaussian p.d.f")) ;
new TCanvas(
"rf110_normintegration",
"rf110_normintegration",600,600) ;
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf110_normintegration.C.