#ifndef ROO_ABS_FUNC
#define ROO_ABS_FUNC
#include "Rtypes.h"
class RooAbsFunc {
public:
inline RooAbsFunc(UInt_t dimension) : _ncall(0), _dimension(dimension), _valid(kTRUE) { }
inline virtual ~RooAbsFunc() { }
inline UInt_t getDimension() const {
return _dimension;
}
inline Bool_t isValid() const {
return _valid;
}
virtual Double_t operator()(const Double_t xvector[]) const = 0;
virtual Double_t getMinLimit(UInt_t dimension) const = 0;
virtual Double_t getMaxLimit(UInt_t dimension) const = 0;
Int_t numCall() const {
return _ncall ;
}
void resetNumCall() const {
_ncall = 0 ;
}
virtual void saveXVec() const {
} ;
virtual void restoreXVec() const {
} ;
virtual const char* getName() const {
return "(unnamed)" ;
}
protected:
mutable Int_t _ncall ;
UInt_t _dimension;
Bool_t _valid;
ClassDef(RooAbsFunc,0)
};
#endif
Last change: Wed Jun 25 08:31:35 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.