2 #include <Math/IFunction.h>
4 struct WrappedGraph : public ROOT::Math::IGenFunction
6 WrappedGraph(TGraph* g) : fGraph(g) {}
8 unsigned int NDim() const { return 1; }
9 ROOT::Math::IGenFunction* Clone() const {return new WrappedGraph(fGraph); }
10 double DoEval(double x) const { return fGraph->Eval(x); }