#ifndef ROO_SCALED_FUNC
#define ROO_SCALED_FUNC
#include "RooAbsFunc.h"
class RooScaledFunc : public RooAbsFunc {
public:
inline RooScaledFunc(const RooAbsFunc &func, Double_t scaleFactor) :
RooAbsFunc(func.getDimension()), _func(&func), _scaleFactor(scaleFactor) { }
inline virtual ~RooScaledFunc() { }
inline virtual Double_t operator()(const Double_t xvector[]) const {
return _scaleFactor*(*_func)(xvector);
}
inline virtual Double_t getMinLimit(UInt_t index) const { return _func->getMinLimit(index); }
inline virtual Double_t getMaxLimit(UInt_t index) const { return _func->getMaxLimit(index); }
protected:
const RooAbsFunc *_func;
Double_t _scaleFactor;
ClassDef(RooScaledFunc,0)
};
#endif
Last change: Wed Jun 25 08:34:08 2008
Last generated: 2008-06-25 08:34
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.