77 oocoutE(
nullptr, Integration) <<
" RooNumIntFactory::Init : libRooFitMore cannot be loaded. GSL integrators will not beavailable ! " << std::endl;
88 static unique_ptr<RooNumIntFactory>
instance;
110 bool canIntegrate1D,
bool canIntegrate2D,
bool canIntegrateND,
111 bool canIntegrateOpenEnded,
const char *depName)
120 info.creator = creator;
121 info.canIntegrate1D = canIntegrate1D;
122 info.canIntegrate2D = canIntegrate2D;
123 info.canIntegrateND = canIntegrateND;
124 info.canIntegrateOpenEnded = canIntegrateOpenEnded;
125 info.depName = depName;
148 bool openEnded = false ;
150 for (i=0 ; i<ndim ; i++) {
174 if (isBinned & !openEnded) {
175 method =
"RooBinIntegrator" ;
180 oocoutE(
nullptr,Integration) <<
"RooNumIntFactory::createIntegrator: No integration method has been defined for "
181 << (openEnded?
"an open ended ":
"a ") << ndim <<
"-dimensional integral" << endl ;
188 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...
RooNumIntConfig holds the configuration parameters of the various numeric integrators used by RooReal...
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.
RooNumIntFactory is a factory to instantiate numeric integrators from a given function binding and a ...
void init()
Register all known integrators by calling their static registration functions.
PluginInfo const * getPluginInfo(const char *name) const
std::function< std::unique_ptr< RooAbsIntegrator >(RooAbsFunc const &function, const RooNumIntConfig &config)> Creator
std::unique_ptr< RooAbsIntegrator > createIntegrator(RooAbsFunc &func, const RooNumIntConfig &config, Int_t ndim=0, bool isBinned=false) const
Construct a numeric integrator instance that operates on function 'func' and is configured with 'conf...
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.
int CompareTo(const char *cs, ECaseCompare cmp=kExact) const
Compare a string to char *cs2.
virtual int Load(const char *module, const char *entry="", Bool_t system=kFALSE)
Load a shared library.