56 RooRealVar numBins(
"numBins",
"Number of bins in range",100) ;
95 oocoutW((
TObject*)0,
Integration) <<
"RooBinIntegrator::RooBinIntegrator WARNING: integrand provide no binning definition observable #" 96 << i <<
" substituting default binning of " <<
_numBins <<
" bins" << endl ;
97 tmp =
new list<Double_t> ;
102 _binb.push_back(tmp) ;
130 oocoutW((
TObject*)0,
Integration) <<
"RooBinIntegrator::RooBinIntegrator WARNING: integrand provide no binning definition observable #" 131 << i <<
" substituting default binning of " <<
_numBins <<
" bins" << endl ;
132 tmp =
new list<Double_t> ;
137 _binb.push_back(tmp) ;
162 for (vector<list<Double_t>*>::iterator iter =
_binb.begin() ; iter!=
_binb.end() ; ++iter) {
225 list<Double_t>::iterator iter =
_binb[0]->begin() ;
227 for (; iter!=
_binb[0]->end() ; ++iter) {
239 list<Double_t>::iterator iter1 =
_binb[0]->begin() ;
242 for (; iter1!=
_binb[0]->end() ; ++iter1) {
247 list<Double_t>::iterator iter2 =
_binb[1]->begin() ;
249 for (; iter2!=
_binb[1]->end() ; ++iter2) {
265 list<Double_t>::iterator iter1 =
_binb[0]->begin() ;
268 for (; iter1!=
_binb[0]->end() ; ++iter1) {
273 list<Double_t>::iterator iter2 =
_binb[1]->begin() ;
275 for (; iter2!=
_binb[1]->end() ; ++iter2) {
280 list<Double_t>::iterator iter3 =
_binb[2]->begin() ;
282 for (; iter3!=
_binb[2]->end() ; ++iter3) {
static RooNumIntConfig & defaultConfig()
Return reference to instance of default numeric integrator configuration object.
RooAbsIntegrator is the abstract interface for integrators of real-valued functions that implement th...
static long int sum(long int i)
RooNumIntConfig holds the configuration parameters of the various numeric integrators used by RooReal...
RooBinIntegrator implements an adaptive one-dimensional numerical integration algorithm.
virtual ~RooBinIntegrator()
Destructor.
virtual Bool_t checkLimits() const
Check that our integration range is finite and otherwise return kFALSE.
RooNumIntFactory is a factory to instantiate numeric integrators from a given function binding and a ...
virtual RooAbsIntegrator * clone(const RooAbsFunc &function, const RooNumIntConfig &config) const
Clone integrator with new function binding and configuration. Needed by RooNumIntFactory.
const RooArgSet & getConfigSection(const char *name) const
Retrieve configuration information specific to integrator with given name.
static Int_t isInfinite(Double_t x)
Return true if x is infinite by RooNumBer internal specification.
virtual Bool_t setLabel(const char *label, Bool_t printError=kTRUE)
Set value by specifying the name of the desired state If printError is set, a message will be printed...
std::vector< std::list< Double_t > * > _binb
Upper integration bound.
void function(const Char_t *name_, T fun, const Char_t *docstring=0)
Bool_t _useIntegrandLimits
Size of integration range.
RooRealVar represents a fundamental (non-derived) real valued object.
UInt_t getDimension() const
const RooAbsFunc * _function
virtual Double_t getMinLimit(UInt_t dimension) const =0
virtual std::list< Double_t > * binBoundaries(Int_t) const
Int_t _numBins
list of bin boundaries
static void registerIntegrator(RooNumIntFactory &fact)
Register RooBinIntegrator, is parameters and capabilities with RooNumIntFactory.
const RooAbsFunc * integrand() const
Double_t * xvec(Double_t &xx)
virtual Double_t getMaxLimit(UInt_t dimension) const =0
std::vector< Double_t > _xmax
Lower integration bound.
Bool_t setLimits(Double_t *xmin, Double_t *xmax)
Change our integration limits.
std::vector< Double_t > _xmin
Mother of all ROOT objects.
Double_t getRealValue(const char *name, Double_t defVal=0, Bool_t verbose=kFALSE) const
Get value of a RooAbsReal stored in set with given name.
RooBinIntegrator()
Default constructor.
virtual Double_t integral(const Double_t *yvec=0)
Calculate numeric integral at given set of function binding parameters.
virtual const char * GetName() const
Returns name of object.
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
Bool_t storeProtoIntegrator(RooAbsIntegrator *proto, const RooArgSet &defConfig, const char *depName="")
Method accepting registration of a prototype numeric integrator along with a RooArgSet of its default...