51 static bool initStarted =
false;
75 _method1D(
"method1D",
"1D integration method"),
76 _method2D(
"method2D",
"2D integration method"),
77 _methodND(
"methodND",
"ND integration method"),
78 _method1DOpen(
"method1DOpen",
"1D integration method in open domain"),
79 _method2DOpen(
"method2DOpen",
"2D integration method in open domain"),
80 _methodNDOpen(
"methodNDOpen",
"ND integration method in open domain")
109 _epsAbs(other._epsAbs),
110 _epsRel(other._epsRel),
111 _printEvalCounter(other._printEvalCounter),
112 _method1D(other._method1D),
113 _method2D(other._method2D),
114 _methodND(other._methodND),
115 _method1DOpen(other._method1DOpen),
116 _method2DOpen(other._method2DOpen),
117 _methodNDOpen(other._methodNDOpen)
120 for(
auto * set : static_range_cast<RooArgSet*>(other.
_configSets)) {
122 setCopy->
setName(set->GetName()) ;
152 for(
auto * set : static_range_cast<RooArgSet*>(other.
_configSets)) {
154 setCopy->
setName(set->GetName()) ;
170 std::string
name =
proto->IsA()->GetName() ;
173 if (
proto->canIntegrate1D()) {
175 if (
proto->canIntegrateOpenEnded()) {
180 if (
proto->canIntegrate2D()) {
182 if (
proto->canIntegrateOpenEnded()) {
187 if (
proto->canIntegrateND()) {
189 if (
proto->canIntegrateOpenEnded()) {
221 oocoutE((
TObject*)0,InputArguments) <<
"RooNumIntConfig::getConfigSection: ERROR: no configuration stored for integrator '" <<
name <<
"'" << endl ;
235 oocoutE((
TObject*)0,InputArguments) <<
"RooNumIntConfig::setEpsAbs: ERROR: target absolute precision must be greater or equal than zero" << endl ;
265 oocoutE((
TObject*)0,InputArguments) <<
"RooNumIntConfig::setEpsRel: ERROR: target absolute precision must be greater or equal than zero" << endl ;
278 os <<
indent <<
"Requested precision: " <<
_epsAbs <<
" absolute, " <<
_epsRel <<
" relative" << endl << endl ;
280 os <<
indent <<
"Printing of function evaluation counter for each integration enabled" << endl << endl ;
304 os << endl <<
"Available integration methods:" << endl << endl ;
305 for(
auto * configSet : static_range_cast<RooArgSet*>(
_configSets)) {
307 os <<
indent <<
"*** " << configSet->GetName() <<
" ***" << endl ;
308 os <<
indent <<
"Capabilities: " ;
310 if (
proto->canIntegrate1D()) os <<
"[1-D] " ;
311 if (
proto->canIntegrate2D()) os <<
"[2-D] " ;
312 if (
proto->canIntegrateND()) os <<
"[N-D] " ;
313 if (
proto->canIntegrateOpenEnded()) os <<
"[OpenEnded] " ;
316 os <<
"Configuration: " << endl ;
321 if (strlen(depName)>0) {
322 os <<
indent <<
"(Depends on '" << depName <<
"')" << endl ;
static void indent(ostringstream &buf, int indent_level)
virtual const char * getCurrentLabel() const
Return label string of current state.
void setName(const char *name)
RooAbsIntegrator is the abstract interface for integrators of real-valued functions that implement th...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooArgSet * snapshot(bool deepCopy=true) const
Use RooAbsCollection::snapshot(), but return as RooArgSet.
bool defineType(const std::string &label)
Define a state with given name.
virtual value_type getCurrentIndex() const override final
Return current index.
virtual Bool_t setIndex(Int_t index, bool printError=true) override
Set value by specifying the index code of the desired state.
TObject * FindObject(const char *name) const
Return pointer to obejct with given name.
void Delete(Option_t *o=0)
Remove all elements in collection and delete all elements NB: Collection does not own elements,...
virtual void Add(TObject *arg)
RooNumIntConfig holds the configuration parameters of the various numeric integrators used by RooReal...
RooCategory _method1DOpen
void setEpsAbs(Double_t newEpsAbs)
Set absolute convergence criteria (convergence if abs(Err)<newEpsAbs)
void printMultiline(std::ostream &os, Int_t content, Bool_t verbose, TString indent="") const
Detailed printing interface.
RooNumIntConfig()
Constructor.
RooLinkedList _configSets
virtual StyleOption defaultPrintStyle(Option_t *opt) const
const RooArgSet & getConfigSection(const char *name) const
Retrieve configuration information specific to integrator with given name.
RooCategory _methodNDOpen
void setEpsRel(Double_t newEpsRel)
Set relative convergence criteria (convergence if abs(Err)/abs(Int)<newEpsRel)
Bool_t addConfigSection(const RooAbsIntegrator *proto, const RooArgSet &defaultConfig)
Add a configuration section for a particular integrator.
RooCategory _method2DOpen
RooNumIntConfig & operator=(const RooNumIntConfig &other)
Assignment operator from other RooNumIntConfig.
virtual ~RooNumIntConfig()
Destructor.
const RooAbsIntegrator * getProtoIntegrator(const char *name) const
Return prototype integrator with given (class) name.
const char * getDepIntegratorName(const char *name) const
Get list of class names of integrators needed by integrator named 'name'.
static RooNumIntFactory & instance()
Static method returning reference to singleton instance of factory.
RooPlotable is a 'mix-in' base class that define the standard RooFit plotting and printing methods.
Mother of all ROOT objects.
void ToLower()
Change string to lower-case.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const