73 oocoutE(
nullptr, Integration) <<
" RooNumIntFactory::Init : libRooFitMore cannot be loaded. GSL integrators will not beavailable ! " << std::endl;
84 static std::unique_ptr<RooNumIntFactory>
instance;
106 bool canIntegrate1D,
bool canIntegrate2D,
bool canIntegrateND,
107 bool canIntegrateOpenEnded,
const char *depName)
116 info.creator = creator;
117 info.canIntegrate1D = canIntegrate1D;
118 info.canIntegrate2D = canIntegrate2D;
119 info.canIntegrateND = canIntegrateND;
120 info.canIntegrateOpenEnded = canIntegrateOpenEnded;
121 info.depName = depName;
134 bool openEnded = false ;
136 for (i=0 ; i<ndim ; i++) {
160 if (isBinned & !openEnded) {
161 method =
"RooBinIntegrator" ;
165 if (method ==
"N/A") {
166 oocoutE(
nullptr,Integration) <<
"RooNumIntFactory: No integration method has been defined for "
167 << (openEnded?
"an open ended ":
"a ") << ndim <<
"-dimensional integral" << std::endl;
194 engine->setPrintEvalCounter(
true) ;
R__EXTERN TSystem * gSystem
virtual const char * getCurrentLabel() const
Return label string of current state.
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
virtual double getMaxLimit(UInt_t dimension) const =0
virtual double getMinLimit(UInt_t dimension) const =0
UInt_t getDimension() const
static void registerIntegrator(RooNumIntFactory &fact)
Register RooAdaptiveIntegratorND, its parameters, dependencies and capabilities with RooNumIntFactory...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
static void registerIntegrator(RooNumIntFactory &fact)
Register RooBinIntegrator, is parameters and capabilities with RooNumIntFactory.
bool setLabel(const char *label, bool printError=true) override
Set value by specifying the name of the desired state.
static void registerIntegrator(RooNumIntFactory &fact)
Register RooImproperIntegrator1D, its parameters and capabilities with RooNumIntFactory.
static void registerIntegrator(RooNumIntFactory &fact)
This function registers class RooMCIntegrator, its configuration options and its capabilities with Ro...
Holds the configuration parameters of the various numeric integrators used by RooRealIntegral.
RooCategory & method2DOpen()
RooCategory & methodNDOpen()
bool addConfigSection(std::string const &name, const RooArgSet &inDefaultConfig, bool canIntegrate1D, bool canIntegrate2D, bool canIntegrateND, bool canIntegrateOpenEnded)
Add a configuration section for a particular integrator.
RooCategory & method1DOpen()
bool printEvalCounter() const
static RooNumIntConfig & defaultConfig()
Return reference to instance of default numeric integrator configuration object.
Factory to instantiate numeric integrators from a given function binding and a given configuration.
PluginInfo const * getPluginInfo(std::string const &name) const
std::unique_ptr< RooAbsIntegrator > createIntegrator(RooAbsFunc &func, const RooNumIntConfig &config, int ndim=0, bool isBinned=false) const
Construct a numeric integrator instance that operates on function 'func' and is configured with 'conf...
void init()
Register all known integrators by calling their static registration functions.
std::string getIntegratorName(RooAbsFunc &func, const RooNumIntConfig &config, int ndim=0, bool isBinned=false) const
std::function< std::unique_ptr< RooAbsIntegrator >(RooAbsFunc const &function, const RooNumIntConfig &config)> Creator
std::map< std::string, PluginInfo > _map
static RooNumIntFactory & instance()
Static method returning reference to singleton instance of factory.
bool registerPlugin(std::string const &name, Creator const &creator, const RooArgSet &defConfig, bool canIntegrate1D, bool canIntegrate2D, bool canIntegrateND, bool canIntegrateOpenEnded, const char *depName="")
Method accepting registration of a prototype numeric integrator along with a RooArgSet of its default...
static constexpr int isInfinite(double x)
Return true if x is infinite by RooNumber internal specification.
static void registerIntegrator(RooNumIntFactory &fact)
Register integrator plugins, their parameters and capabilities with RooNumIntFactory.
virtual int Load(const char *module, const char *entry="", Bool_t system=kFALSE)
Load a shared library.