#ifndef ROO_ABS_INTEGRATOR
#define ROO_ABS_INTEGRATOR
#include "RooAbsFunc.h"
#include "RooNumIntConfig.h"
class RooAbsIntegrator : public TObject {
public:
RooAbsIntegrator() ;
RooAbsIntegrator(const RooAbsFunc& function, Bool_t printEvalCounter=kFALSE);
inline virtual ~RooAbsIntegrator() {
}
virtual RooAbsIntegrator* clone(const RooAbsFunc& function, const RooNumIntConfig& config) const = 0 ;
inline Bool_t isValid() const {
return _valid;
}
inline Double_t integrand(const Double_t x[]) const {
return (*_function)(x);
}
inline const RooAbsFunc *integrand() const {
return _function;
}
inline virtual Bool_t checkLimits() const {
return kTRUE;
}
Double_t calculate(const Double_t *yvec=0) ;
virtual Double_t integral(const Double_t *yvec=0)=0 ;
virtual Bool_t canIntegrate1D() const = 0 ;
virtual Bool_t canIntegrate2D() const = 0 ;
virtual Bool_t canIntegrateND() const = 0 ;
virtual Bool_t canIntegrateOpenEnded() const = 0 ;
Bool_t printEvalCounter() const { return _printEvalCounter ; }
void setPrintEvalCounter(Bool_t value) { _printEvalCounter = value ; }
virtual Bool_t setLimits(Double_t xmin, Double_t xmax) ;
virtual Bool_t setUseIntegrandLimits(Bool_t flag) ;
protected:
const RooAbsFunc *_function;
Bool_t _valid;
Bool_t _printEvalCounter ;
ClassDef(RooAbsIntegrator,0)
};
#endif
Last change: Wed Jun 25 08:31:37 2008
Last generated: 2008-06-25 08:31
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.