ROOT logo
#include <TGraph.h>
#include <Math/IFunction.h>

struct WrappedGraph : public ROOT::Math::IGenFunction
{
  WrappedGraph(TGraph* g) : fGraph(g) {}

  unsigned int NDim() const { return 1; }
  ROOT::Math::IGenFunction* Clone() const {return new WrappedGraph(fGraph); }
  double DoEval(double x) const { return fGraph->Eval(x); }
  TGraph* fGraph;

  
};


 WrappedGraph.C:1
 WrappedGraph.C:2
 WrappedGraph.C:3
 WrappedGraph.C:4
 WrappedGraph.C:5
 WrappedGraph.C:6
 WrappedGraph.C:7
 WrappedGraph.C:8
 WrappedGraph.C:9
 WrappedGraph.C:10
 WrappedGraph.C:11
 WrappedGraph.C:12
 WrappedGraph.C:13
 WrappedGraph.C:14
 WrappedGraph.C:15
 WrappedGraph.C:16
 WrappedGraph.C:17