FitEditorUnitTesting Class Reference

List of all members.

Public Member Functions

 FitEditorUnitTesting ()
 ~FitEditorUnitTesting ()
template<typename T>
int MakeTest (const char *str, T func)
int UnitTesting ()
void PrintFuncPars ()
int CompareFuncPars (std::vector< TFitEditor::FuncParamData_t > &pars)
int TestHistogramFit ()
int TestGSLFit ()
int TestUpdate ()
int TestGraph ()
int TestGraphError ()
int TestGraph2D ()
int TestGraph2DError ()
int TestUpdateTree ()
int TestTree1D ()
int TestTree2D ()
int TestTreeND ()

Private Attributes

TFitEditorf
int old_stdout
FILE * out

Classes

class  InvalidPointer

Detailed Description

Definition at line 42 of file UnitTesting.cxx.


Constructor & Destructor Documentation

FitEditorUnitTesting::FitEditorUnitTesting (  )  [inline]

Definition at line 66 of file UnitTesting.cxx.

References c1, f, TROOT::FindObject(), TFitEditor::GetInstance(), gROOT, h, old_stdout, out, TROOT::ProcessLine(), and void.

FitEditorUnitTesting::~FitEditorUnitTesting (  )  [inline]

Definition at line 91 of file UnitTesting.cxx.

References TFitEditor::DoClose(), f, gApplication, and TApplication::Terminate().


Member Function Documentation

template<typename T>
int FitEditorUnitTesting::MakeTest ( const char *  str,
T  func 
) [inline]

Definition at line 104 of file UnitTesting.cxx.

References fprintf(), and out.

Referenced by UnitTesting().

int FitEditorUnitTesting::UnitTesting (  )  [inline]

Definition at line 125 of file UnitTesting.cxx.

References fprintf(), MakeTest(), out, result(), TestGraph(), TestGraph2D(), TestGraph2DError(), TestGraphError(), TestGSLFit(), TestHistogramFit(), TestTree1D(), TestTree2D(), TestTreeND(), TestUpdate(), and TestUpdateTree().

Referenced by UnitTesting().

void FitEditorUnitTesting::PrintFuncPars (  )  [inline]

Definition at line 161 of file UnitTesting.cxx.

References f, TFitEditor::fFuncPars, fprintf(), i, and out.

int FitEditorUnitTesting::CompareFuncPars ( std::vector< TFitEditor::FuncParamData_t > &  pars  )  [inline]

Definition at line 174 of file UnitTesting.cxx.

References equals(), f, TFitEditor::fFuncPars, i, and j.

Referenced by TestGraph(), TestGraph2D(), TestGraph2DError(), TestGraphError(), TestGSLFit(), TestHistogramFit(), TestTree1D(), TestTree2D(), and TestTreeND().

int FitEditorUnitTesting::TestHistogramFit (  )  [inline]

Definition at line 192 of file UnitTesting.cxx.

References CompareFuncPars(), TFitEditor::DoFit(), f, TFitEditor::fFuncList, TFitEditor::fTypeFit, kFP_ALTFUNC, kFP_UFUNC, kTRUE, and TGComboBox::Select().

Referenced by UnitTesting().

int FitEditorUnitTesting::TestGSLFit (  )  [inline]

Definition at line 208 of file UnitTesting.cxx.

References CompareFuncPars(), TFitEditor::DoFit(), f, TFitEditor::fLibGSL, TFitEditor::fMinMethodList, TFitEditor::fTypeFit, kFP_BFGS2, kFP_PREVFIT, kTRUE, TGComboBox::Select(), and TGButton::Toggled().

Referenced by UnitTesting().

int FitEditorUnitTesting::TestUpdate (  )  [inline]

Definition at line 225 of file UnitTesting.cxx.

References TFitEditor::DoUpdate(), f, gROOT, and TROOT::ProcessLine().

Referenced by UnitTesting().

int FitEditorUnitTesting::TestGraph (  )  [inline]

Definition at line 232 of file UnitTesting.cxx.

References CompareFuncPars(), TFitEditor::DoFit(), f, TFitEditor::fDataSet, TFitEditor::fFuncList, TFitEditor::fLibMinuit2, TFitEditor::fMinMethodList, TFitEditor::fTypeFit, kFP_MIGRAD, kFP_UFUNC, kTRUE, TGComboBox::Select(), SelectEntry(), and TGButton::Toggled().

Referenced by UnitTesting().

int FitEditorUnitTesting::TestGraphError (  )  [inline]

Definition at line 249 of file UnitTesting.cxx.

References CompareFuncPars(), TFitEditor::DoFit(), f, TFitEditor::fDataSet, TFitEditor::fFuncList, TFitEditor::fLibMinuit2, TFitEditor::fMinMethodList, TFitEditor::fTypeFit, kFP_MIGRAD, kFP_UFUNC, kTRUE, TGComboBox::Select(), SelectEntry(), and TGButton::Toggled().

Referenced by UnitTesting().

int FitEditorUnitTesting::TestGraph2D (  )  [inline]

Definition at line 266 of file UnitTesting.cxx.

References CompareFuncPars(), TFitEditor::DoFit(), f, TFitEditor::fDataSet, TFitEditor::fFuncList, TFitEditor::fFuncPars, TFitEditor::fLibMinuit2, TFitEditor::fMinMethodList, TFitEditor::fTypeFit, kFP_MIGRAD, kFP_UFUNC, kTRUE, TGComboBox::Select(), SelectEntry(), and TGButton::Toggled().

Referenced by UnitTesting().

int FitEditorUnitTesting::TestGraph2DError (  )  [inline]

Definition at line 290 of file UnitTesting.cxx.

References CompareFuncPars(), TFitEditor::DoFit(), f, TFitEditor::fDataSet, TFitEditor::fFuncList, TFitEditor::fFuncPars, TFitEditor::fLibMinuit2, TFitEditor::fMinMethodList, TFitEditor::fTypeFit, kFP_MIGRAD, kFP_UFUNC, kTRUE, TGComboBox::Select(), SelectEntry(), and TGButton::Toggled().

Referenced by UnitTesting().

int FitEditorUnitTesting::TestUpdateTree (  )  [inline]

Definition at line 314 of file UnitTesting.cxx.

References TFitEditor::DoUpdate(), f, gROOT, and TROOT::ProcessLine().

Referenced by UnitTesting().

int FitEditorUnitTesting::TestTree1D (  )  [inline]

Definition at line 320 of file UnitTesting.cxx.

References CompareFuncPars(), TFitEditor::DoFit(), f, TFitEditor::fFuncList, TFitEditor::fFuncPars, TROOT::FindObject(), TFitEditor::fTypeFit, gROOT, kFP_NOSEL, kFP_PRED1D, kTRUE, TFitEditor::ProcessTreeInput(), TGComboBox::Select(), and SelectEntry().

Referenced by UnitTesting().

int FitEditorUnitTesting::TestTree2D (  )  [inline]

Definition at line 346 of file UnitTesting.cxx.

References CompareFuncPars(), TFitEditor::DoFit(), f, TFitEditor::fFuncList, TFitEditor::fFuncPars, TROOT::FindObject(), TFitEditor::fTypeFit, gROOT, kFP_NOSEL, kFP_UFUNC, kTRUE, TFitEditor::ProcessTreeInput(), TGComboBox::Select(), and SelectEntry().

Referenced by UnitTesting().

int FitEditorUnitTesting::TestTreeND (  )  [inline]

Definition at line 371 of file UnitTesting.cxx.

References CompareFuncPars(), TFitEditor::DoFit(), f, TFitEditor::fFuncList, TFitEditor::fFuncPars, TROOT::FindObject(), TFitEditor::fTypeFit, gROOT, kFP_NOSEL, kFP_UFUNC, kTRUE, TFitEditor::ProcessTreeInput(), TGComboBox::Select(), and SelectEntry().

Referenced by UnitTesting().


Member Data Documentation

TFitEditor* FitEditorUnitTesting::f [private]

Definition at line 46 of file UnitTesting.cxx.

Referenced by CompareFuncPars(), FitEditorUnitTesting(), PrintFuncPars(), TestGraph(), TestGraph2D(), TestGraph2DError(), TestGraphError(), TestGSLFit(), TestHistogramFit(), TestTree1D(), TestTree2D(), TestTreeND(), TestUpdate(), TestUpdateTree(), and ~FitEditorUnitTesting().

int FitEditorUnitTesting::old_stdout [private]

Definition at line 50 of file UnitTesting.cxx.

Referenced by FitEditorUnitTesting().

FILE* FitEditorUnitTesting::out [private]

Definition at line 51 of file UnitTesting.cxx.

Referenced by FitEditorUnitTesting(), MakeTest(), PrintFuncPars(), and UnitTesting().


The documentation for this class was generated from the following file:
Generated on Tue Jul 5 16:25:12 2011 for ROOT_528-00b_version by  doxygen 1.5.1