#ifdef __cplusplus extern "C" { #endif #include "HROOTType.h" #include "HROOTTNamed.h" #include "HROOTTAttLine.h" #include "HROOTTAttFill.h" #include "HROOTTAttMarker.h" #include "HROOTTObject.h" #include "HROOTDeletable.h" #undef ROOT_TGRAPH_DECLARATIONVIRT #define ROOT_TGRAPH_DECLARATIONVIRT(Type) \ void Type ## _Apply ( Type ## _p p, TF1_p f ); \ double Type ## _Chisquare ( Type ## _p p, TF1_p f1 ); \ void Type ## _DrawGraph ( Type ## _p p, int n, double * x, double * y, const char * option ); \ void Type ## _drawPanelTGraph ( Type ## _p p ); \ void Type ## _Expand ( Type ## _p p, int newsize, int step ); \ void Type ## _FitPanelTGraph ( Type ## _p p ); \ double Type ## _getCorrelationFactorTGraph ( Type ## _p p ); \ double Type ## _getCovarianceTGraph ( Type ## _p p ); \ double Type ## _getMeanTGraph ( Type ## _p p, int axis ); \ double Type ## _getRMSTGraph ( Type ## _p p, int axis ); \ double Type ## _GetErrorX ( Type ## _p p, int bin ); \ double Type ## _GetErrorY ( Type ## _p p, int bin ); \ double Type ## _GetErrorXhigh ( Type ## _p p, int bin ); \ double Type ## _GetErrorXlow ( Type ## _p p, int bin ); \ double Type ## _GetErrorYhigh ( Type ## _p p, int bin ); \ double Type ## _GetErrorYlow ( Type ## _p p, int bin ); \ void Type ## _InitExpo ( Type ## _p p, double xmin, double xmax ); \ void Type ## _InitGaus ( Type ## _p p, double xmin, double xmax ); \ void Type ## _InitPolynom ( Type ## _p p, double xmin, double xmax ); \ int Type ## _InsertPoint ( Type ## _p p ); \ double Type ## _integralTGraph ( Type ## _p p, int first, int last ); \ int Type ## _IsEditable ( Type ## _p p ); \ int Type ## _isInsideTGraph ( Type ## _p p, double x, double y ); \ void Type ## _LeastSquareFit ( Type ## _p p, int m, double * a, double xmin, double xmax ); \ void Type ## _PaintStats ( Type ## _p p, TF1_p fit ); \ int Type ## _RemovePoint ( Type ## _p p, int ipoint ); \ void Type ## _SetEditable ( Type ## _p p, int editable ); \ void Type ## _SetHistogram ( Type ## _p p, TH1F_p h ); \ void Type ## _setMaximumTGraph ( Type ## _p p, double maximum ); \ void Type ## _setMinimumTGraph ( Type ## _p p, double minimum ); \ void Type ## _Set ( Type ## _p p, int n ); \ void Type ## _SetPoint ( Type ## _p p, int i, double x, double y ) #undef ROOT_TGRAPH_DECLARATIONNONVIRT #define ROOT_TGRAPH_DECLARATIONNONVIRT(Type) \ Type ## _p Type ## _newTGraph ( int n, double * x, double * y ); \ int Type ## _tGraphGetEditable ( Type ## _p p ); \ TF1_p Type ## _tGraphGetFunction ( Type ## _p p, const char * name ); \ TH1F_p Type ## _tGraphGetHistogram ( Type ## _p p ); \ TList_p Type ## _tGraphGetListOfFunctions ( Type ## _p p ); \ int Type ## _tGraphGetMaxSize ( Type ## _p p ); \ int Type ## _tGraphGetN ( Type ## _p p ); \ double Type ## _tGraphGetMaximum ( Type ## _p p ); \ double Type ## _tGraphGetMinimum ( Type ## _p p ); \ TAxis_p Type ## _tGraphGetXaxis ( Type ## _p p ); \ TAxis_p Type ## _tGraphGetYaxis ( Type ## _p p ); \ void Type ## _tGraphPaintGraph ( Type ## _p p, int npoints, double * x, double * y, const char * chopt ); \ void Type ## _tGraphPaintGrapHist ( Type ## _p p, int npoints, double * x, double * y, const char * chopt ) #undef ROOT_TGRAPH_DEFINITIONVIRT #define ROOT_TGRAPH_DEFINITIONVIRT(Type)\ void Type ## _Apply ( Type ## _p p, TF1_p f )\ {\ to_nonconst(p)->Apply(to_nonconst(f));\ }\ double Type ## _Chisquare ( Type ## _p p, TF1_p f1 )\ {\ return to_nonconst(p)->Chisquare(to_nonconst(f1));\ }\ void Type ## _DrawGraph ( Type ## _p p, int n, double * x, double * y, const char * option )\ {\ to_nonconst(p)->DrawGraph(n, x, y, option);\ }\ void Type ## _drawPanelTGraph ( Type ## _p p )\ {\ to_nonconst(p)->DrawPanel();\ }\ void Type ## _Expand ( Type ## _p p, int newsize, int step )\ {\ to_nonconst(p)->Expand(newsize, step);\ }\ void Type ## _FitPanelTGraph ( Type ## _p p )\ {\ to_nonconst(p)->FitPanel();\ }\ double Type ## _getCorrelationFactorTGraph ( Type ## _p p )\ {\ return to_nonconst(p)->GetCorrelationFactor();\ }\ double Type ## _getCovarianceTGraph ( Type ## _p p )\ {\ return to_nonconst(p)->GetCovariance();\ }\ double Type ## _getMeanTGraph ( Type ## _p p, int axis )\ {\ return to_nonconst(p)->GetMean(axis);\ }\ double Type ## _getRMSTGraph ( Type ## _p p, int axis )\ {\ return to_nonconst(p)->GetRMS(axis);\ }\ double Type ## _GetErrorX ( Type ## _p p, int bin )\ {\ return to_nonconst(p)->GetErrorX(bin);\ }\ double Type ## _GetErrorY ( Type ## _p p, int bin )\ {\ return to_nonconst(p)->GetErrorY(bin);\ }\ double Type ## _GetErrorXhigh ( Type ## _p p, int bin )\ {\ return to_nonconst(p)->GetErrorXhigh(bin);\ }\ double Type ## _GetErrorXlow ( Type ## _p p, int bin )\ {\ return to_nonconst(p)->GetErrorXlow(bin);\ }\ double Type ## _GetErrorYhigh ( Type ## _p p, int bin )\ {\ return to_nonconst(p)->GetErrorYhigh(bin);\ }\ double Type ## _GetErrorYlow ( Type ## _p p, int bin )\ {\ return to_nonconst(p)->GetErrorYlow(bin);\ }\ void Type ## _InitExpo ( Type ## _p p, double xmin, double xmax )\ {\ to_nonconst(p)->InitExpo(xmin, xmax);\ }\ void Type ## _InitGaus ( Type ## _p p, double xmin, double xmax )\ {\ to_nonconst(p)->InitGaus(xmin, xmax);\ }\ void Type ## _InitPolynom ( Type ## _p p, double xmin, double xmax )\ {\ to_nonconst(p)->InitPolynom(xmin, xmax);\ }\ int Type ## _InsertPoint ( Type ## _p p )\ {\ return to_nonconst(p)->InsertPoint();\ }\ double Type ## _integralTGraph ( Type ## _p p, int first, int last )\ {\ return to_nonconst(p)->Integral(first, last);\ }\ int Type ## _IsEditable ( Type ## _p p )\ {\ return to_nonconst(p)->IsEditable();\ }\ int Type ## _isInsideTGraph ( Type ## _p p, double x, double y )\ {\ return to_nonconst(p)->IsInside(x, y);\ }\ void Type ## _LeastSquareFit ( Type ## _p p, int m, double * a, double xmin, double xmax )\ {\ to_nonconst(p)->LeastSquareFit(m, a, xmin, xmax);\ }\ void Type ## _PaintStats ( Type ## _p p, TF1_p fit )\ {\ to_nonconst(p)->PaintStats(to_nonconst(fit));\ }\ int Type ## _RemovePoint ( Type ## _p p, int ipoint )\ {\ return to_nonconst(p)->RemovePoint(ipoint);\ }\ void Type ## _SetEditable ( Type ## _p p, int editable )\ {\ to_nonconst(p)->SetEditable(editable);\ }\ void Type ## _SetHistogram ( Type ## _p p, TH1F_p h )\ {\ to_nonconst(p)->SetHistogram(to_nonconst(h));\ }\ void Type ## _setMaximumTGraph ( Type ## _p p, double maximum )\ {\ to_nonconst(p)->SetMaximum(maximum);\ }\ void Type ## _setMinimumTGraph ( Type ## _p p, double minimum )\ {\ to_nonconst(p)->SetMinimum(minimum);\ }\ void Type ## _Set ( Type ## _p p, int n )\ {\ to_nonconst(p)->Set(n);\ }\ void Type ## _SetPoint ( Type ## _p p, int i, double x, double y )\ {\ to_nonconst(p)->SetPoint(i, x, y);\ } #undef ROOT_TGRAPH_DEFINITIONNONVIRT #define ROOT_TGRAPH_DEFINITIONNONVIRT(Type)\ Type ## _p Type ## _newTGraph ( int n, double * x, double * y )\ {\ Type * newp = new Type (n, x, y); \ return to_nonconst(newp);\ }\ int Type ## _tGraphGetEditable ( Type ## _p p )\ {\ return to_nonconst(p)->GetEditable();\ }\ TF1_p Type ## _tGraphGetFunction ( Type ## _p p, const char * name )\ {\ return to_nonconst((TF1*)to_nonconst(p)->GetFunction(name));\ }\ TH1F_p Type ## _tGraphGetHistogram ( Type ## _p p )\ {\ return to_nonconst((TH1F*)to_nonconst(p)->GetHistogram());\ }\ TList_p Type ## _tGraphGetListOfFunctions ( Type ## _p p )\ {\ return to_nonconst((TList*)to_nonconst(p)->GetListOfFunctions());\ }\ int Type ## _tGraphGetMaxSize ( Type ## _p p )\ {\ return to_nonconst(p)->GetMaxSize();\ }\ int Type ## _tGraphGetN ( Type ## _p p )\ {\ return to_nonconst(p)->GetN();\ }\ double Type ## _tGraphGetMaximum ( Type ## _p p )\ {\ return to_nonconst(p)->GetMaximum();\ }\ double Type ## _tGraphGetMinimum ( Type ## _p p )\ {\ return to_nonconst(p)->GetMinimum();\ }\ TAxis_p Type ## _tGraphGetXaxis ( Type ## _p p )\ {\ return to_nonconst((TAxis*)to_nonconst(p)->GetXaxis());\ }\ TAxis_p Type ## _tGraphGetYaxis ( Type ## _p p )\ {\ return to_nonconst((TAxis*)to_nonconst(p)->GetYaxis());\ }\ void Type ## _tGraphPaintGraph ( Type ## _p p, int npoints, double * x, double * y, const char * chopt )\ {\ to_nonconst(p)->PaintGraph(npoints, x, y, chopt);\ }\ void Type ## _tGraphPaintGrapHist ( Type ## _p p, int npoints, double * x, double * y, const char * chopt )\ {\ to_nonconst(p)->PaintGrapHist(npoints, x, y, chopt);\ } ROOT_TNAMED_DECLARATIONVIRT(TGraph); ROOT_TATTLINE_DECLARATIONVIRT(TGraph); ROOT_TATTFILL_DECLARATIONVIRT(TGraph); ROOT_TATTMARKER_DECLARATIONVIRT(TGraph); ROOT_TOBJECT_DECLARATIONVIRT(TGraph); ROOT_DELETABLE_DECLARATIONVIRT(TGraph); ROOT_TGRAPH_DECLARATIONVIRT(TGraph); ROOT_TGRAPH_DECLARATIONNONVIRT(TGraph); #ifdef __cplusplus } #endif