AliPhysics  608b256 (608b256)
WrappedGraph.C
Go to the documentation of this file.
1 #include <TGraph.h>
2 #include <Math/IFunction.h>
3 
4 struct WrappedGraph : public ROOT::Math::IGenFunction
5 {
7 
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); }
12 
13 
14 };
15 
16 
TGraph * fGraph
Definition: WrappedGraph.C:11
WrappedGraph(TGraph *g)
Definition: WrappedGraph.C:6
double DoEval(double x) const
Definition: WrappedGraph.C:10
unsigned int NDim() const
Definition: WrappedGraph.C:8
ROOT::Math::IGenFunction * Clone() const
Definition: WrappedGraph.C:9