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)
176 std::string
name =
proto->IsA()->GetName() ;
179 if (
proto->canIntegrate1D()) {
181 if (
proto->canIntegrateOpenEnded()) {
186 if (
proto->canIntegrate2D()) {
188 if (
proto->canIntegrateOpenEnded()) {
193 if (
proto->canIntegrateND()) {
195 if (
proto->canIntegrateOpenEnded()) {
227 oocoutE((
TObject*)0,InputArguments) <<
"RooNumIntConfig::getConfigSection: ERROR: no configuration stored for integrator '" <<
name <<
"'" << endl ;
241 oocoutE((
TObject*)0,InputArguments) <<
"RooNumIntConfig::setEpsAbs: ERROR: target absolute precision must be greater or equal than zero" << endl ;
271 oocoutE((
TObject*)0,InputArguments) <<
"RooNumIntConfig::setEpsRel: ERROR: target absolute precision must be greater or equal than zero" << endl ;
284 os <<
indent <<
"Requested precision: " <<
_epsAbs <<
" absolute, " <<
_epsRel <<
" relative" << endl << endl ;
286 os <<
indent <<
"Printing of function evaluation counter for each integration enabled" << endl << endl ;
310 os << endl <<
"Available integration methods:" << endl << endl ;
315 os <<
indent <<
"*** " << configSet->
GetName() <<
" ***" << endl ;
316 os <<
indent <<
"Capabilities: " ;
318 if (
proto->canIntegrate1D()) os <<
"[1-D] " ;
319 if (
proto->canIntegrate2D()) os <<
"[2-D] " ;
320 if (
proto->canIntegrateND()) os <<
"[N-D] " ;
321 if (
proto->canIntegrateOpenEnded()) os <<
"[OpenEnded] " ;
324 os <<
"Configuration: " << endl ;
329 if (strlen(depName)>0) {
330 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.
virtual void printMultiline(std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
Implement multiline printing of collection, one line for each contained object showing the requested ...
const char * GetName() const
Returns name of object.
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.
TIterator * MakeIterator(Bool_t forward=kTRUE) const
Create a TIterator for this list.
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.
Iterator abstract base class.
virtual TObject * Next()=0
Mother of all ROOT objects.
void ToLower()
Change string to lower-case.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const