ROOT
tags/6-34-04
Reference Guide
Loading...
Searching...
No Matches
RooNumCdf.cxx
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: RooFit *
3
* *
4
* Copyright (c) 2000-2005, Regents of the University of California *
5
* and Stanford University. All rights reserved. *
6
* *
7
* Redistribution and use in source and binary forms, *
8
* with or without modification, are permitted according to the terms *
9
* listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
10
*****************************************************************************/
11
12
/**
13
\file RooNumCdf.cxx
14
\class RooNumCdf
15
\ingroup Roofitcore
16
17
Implementation of RooNumRunningInt
18
that calculates cumulative distribution functions from p.d.f.s. The main
19
difference between RooNumCdf and RooNumRunningInt is that this class
20
imposes special end-point conditions on the interpolated histogram
21
that represents the output so that the value at the lower bound is
22
guaranteed to converge to exactly zero and that the value at the
23
upper bound is guaranteed to converge to exactly one, at all interpolation
24
orders.
25
**/
26
27
#include "
Riostream.h
"
28
29
#include "
RooAbsPdf.h
"
30
#include "
RooNumCdf.h
"
31
#include "
RooAbsReal.h
"
32
#include "
RooMsgService.h
"
33
#include "
RooDataHist.h
"
34
#include "
RooHistPdf.h
"
35
#include "
RooRealVar.h
"
36
37
ClassImp
(
RooNumCdf
);
38
39
////////////////////////////////////////////////////////////////////////////////
40
/// Construct a cumulative distribution function from given input p.d.f over observable x.
41
/// using a numeric sampling algorithm. Use binning named 'bname' to control sampling
42
/// granularity
43
44
RooNumCdf::RooNumCdf
(
const
char
*
name
,
const
char
*title,
RooAbsPdf
& _pdf,
RooRealVar
& _x,
const
char
* bname) :
45
RooNumRunningInt
(
name
,title,_pdf,_x,bname)
46
{
47
}
48
49
////////////////////////////////////////////////////////////////////////////////
50
/// Fill cache using running integral cache elements calculate()
51
/// method with specification of cdf-specific boundary conditions
52
53
void
RooNumCdf::fillCacheObject
(
RooAbsCachedReal::FuncCacheElem
& cache)
const
54
{
55
RICacheElem
&
riCache
=
static_cast<
RICacheElem
&
>
(cache) ;
56
riCache
.calculate(
true
) ;
57
}
Riostream.h
RooAbsPdf.h
RooAbsReal.h
RooDataHist.h
RooHistPdf.h
RooMsgService.h
RooNumCdf.h
RooRealVar.h
ClassImp
#define ClassImp(name)
Definition
Rtypes.h:382
name
char name[80]
Definition
TGX11.cxx:110
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
RooAbsCachedReal::FuncCacheElem
Definition
RooAbsCachedReal.h:58
RooAbsPdf
Abstract interface for all probability density functions.
Definition
RooAbsPdf.h:40
RooNumCdf
Implementation of RooNumRunningInt that calculates cumulative distribution functions from p....
Definition
RooNumCdf.h:17
RooNumCdf::RooNumCdf
RooNumCdf(const char *name, const char *title, RooAbsPdf &_pdf, RooRealVar &_x, const char *binningName="cache")
Construct a cumulative distribution function from given input p.d.f over observable x.
Definition
RooNumCdf.cxx:44
RooNumCdf::fillCacheObject
void fillCacheObject(FuncCacheElem &cacheFunc) const override
Fill cache using running integral cache elements calculate() method with specification of cdf-specifi...
Definition
RooNumCdf.cxx:53
RooNumRunningInt::RICacheElem
Definition
RooNumRunningInt.h:31
RooNumRunningInt
Implementation of RooAbsCachedReal that represents a running integral.
Definition
RooNumRunningInt.h:22
RooRealVar
Variable that can be changed from the outside.
Definition
RooRealVar.h:37
roofit
roofitcore
src
RooNumCdf.cxx
ROOT tags/6-34-04 - Reference Guide Generated on Wed Mar 5 2025 04:43:18 (GVA Time) using Doxygen 1.10.0