]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/corrs/WrappedGraph.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / corrs / WrappedGraph.C
1 #include <TGraph.h>
2 #include <Math/IFunction.h>
3
4 struct WrappedGraph : public ROOT::Math::IGenFunction
5 {
6   WrappedGraph(TGraph* g) : fGraph(g) {}
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); }
11   TGraph* fGraph;
12
13   
14 };
15
16