Basic functionality: normalization and integration of pdfs, construction of cumulative distribution monodimensional functions 
 
  
 
{
   
   
 
   
 
   
 
   
   
 
   
   cout << 
"gx = " << 
gx.getVal() << endl;
 
 
   
   cout << 
"gx_Norm[x] = " << 
gx.getVal(&nset) << endl;
 
 
   
   
   std::unique_ptr<RooAbsReal> 
igx{
gx.createIntegral(
x)};
 
   cout << 
"gx_Int[x] = " << 
igx->getVal() << endl;
 
 
   
   
 
   
   x.setRange(
"signal", -5, 5);
 
 
   
   
   
   std::unique_ptr<RooAbsReal> 
igx_sig{
gx.createIntegral(
x, NormSet(
x), 
Range(
"signal"))};
 
   cout << 
"gx_Int[x|signal]_Norm[x] = " << 
igx_sig->getVal() << endl;
 
 
   
   
 
   
   
   std::unique_ptr<RooAbsReal> 
gx_cdf{
gx.createCdf(
x)};
 
 
   
 
   
   new TCanvas(
"rf110_normintegration", 
"rf110_normintegration", 600, 600);
 
   gPad->SetLeftMargin(0.15);
 
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
RooArgSet is a container object that can hold multiple RooAbsArg objects.
 
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.
 
void Draw(Option_t *options=nullptr) override
Draw this plot and all of the elements it contains.
 
Variable that can be changed from the outside.
 
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
 
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
 
   
gx = 0.800737
gx_Norm[x] = 0.106896
gx_Int[x] = 7.49084
[#1] INFO:Eval -- RooRealVar::setRange(x) new range named 'signal' created with bounds [-5,5]
gx_Int[x|signal]_Norm[x] = 0.834753
- Date
 - July 2008 
 
- Author
 - Wouter Verkerke 
 
Definition in file rf110_normintegration.C.