ROOT  6.06/08
Reference Guide
Macros | Typedefs | Functions | Variables
testFitPerf.cxx File Reference
#include "TH1.h"
#include "TF1.h"
#include "TF2.h"
#include "TMath.h"
#include "TSystem.h"
#include "TRandom3.h"
#include "TTree.h"
#include "TROOT.h"
#include "Fit/BinData.h"
#include "Fit/UnBinData.h"
#include "Fit/Fitter.h"
#include "HFitInterface.h"
#include "Math/IParamFunction.h"
#include "Math/WrappedTF1.h"
#include "Math/WrappedMultiTF1.h"
#include "Math/WrappedParamFunction.h"
#include "Math/MultiDimParamFunctionAdapter.h"
#include "TGraphErrors.h"
#include "TStyle.h"
#include "TSeqCollection.h"
#include "Math/Polynomial.h"
#include "Math/DistFunc.h"
#include <string>
#include <iostream>
#include "TStopwatch.h"
#include "TVirtualFitter.h"
#include "GaussFunction.h"
#include <cassert>
#include "MinimizerTypes.h"
+ Include dependency graph for testFitPerf.cxx:

Go to the source code of this file.

Macros

#define USE_VECNLL
 

Typedefs

typedef ROOT::Math::IParamMultiFunction Func
 

Functions

void printData (const ROOT::Fit::UnBinData &data)
 
void printResult (int iret)
 
ROOT::Fit::UnBinDataFillUnBinData (TTree *tree, bool copyData=true, unsigned int dim=1)
 
template<class T >
void printData (const T &data)
 
template<class MinType , class T >
int DoBinFit (T *hist, Func &func, bool debug=false, bool useGrad=false)
 
template<class MinType , class T >
int DoUnBinFit (T *tree, Func &func, bool debug=false, bool copyData=false)
 
template<class MinType , class T , class VFunc >
int DoUnBinFitVec (T *tree, VFunc &func, int ndim, int npar, const double *p0, bool debug=false, bool copyData=false)
 
template<class MinType >
int DoFit (TTree *tree, Func &func, bool debug=false, bool copyData=false)
 
template<class MinType >
int DoFit (TH1 *h1, Func &func, bool debug=false, bool copyData=false)
 
template<class MinType >
int DoFit (TGraph *gr, Func &func, bool debug=false, bool copyData=false)
 
template<class MinType , class F >
int DoFitVec (TTree *tree, F &func, int n1, int n2, const double *p, bool debug=false, bool copyData=false)
 
template<class MinType , class F >
int DoFitVec (TH1 *h1, F &func, int, int, const double *, bool debug=false, bool copyData=false)
 
template<class MinType , class F >
int DoFitVec (TGraph *gr, F &func, int, int, const double *, bool debug=false, bool copyData=false)
 
template<class MinType , class FitObj , class FuncObj >
int FitUsingNewFitter (FitObj *fitobj, FuncObj func, bool useGrad=false)
 
double poly2 (const double *x, const double *p)
 
int testPolyFit ()
 
double gaussian (const double *x, const double *p)
 
double gausnorm (const double *x, const double *p)
 
double gausnorm2D (const double *x, const double *p)
 
double gausnormN (const double *x, const double *p)
 
int testGausFit ()
 
int testTreeFit ()
 
int testLargeTreeFit (int nevt=1000)
 
int testFitPerf ()
 
int main ()
 

Variables

int nfit
 
const int N = 20
 
double iniPar [2 *N]
 
int ndimObs
 
int ndimPars
 
bool USE_BRANCH = false
 

Macro Definition Documentation

§ USE_VECNLL

#define USE_VECNLL

Typedef Documentation

§ Func

Definition at line 393 of file testFitPerf.cxx.

Function Documentation

§ DoBinFit()

template<class MinType , class T >
int DoBinFit ( T *  hist,
Func func,
bool  debug = false,
bool  useGrad = false 
)

Definition at line 395 of file testFitPerf.cxx.

§ DoFit() [1/3]

template<class MinType >
int DoFit ( TTree tree,
Func func,
bool  debug = false,
bool  copyData = false 
)

Definition at line 557 of file testFitPerf.cxx.

§ DoFit() [2/3]

template<class MinType >
int DoFit ( TH1 h1,
Func func,
bool  debug = false,
bool  copyData = false 
)

Definition at line 562 of file testFitPerf.cxx.

§ DoFit() [3/3]

template<class MinType >
int DoFit ( TGraph gr,
Func func,
bool  debug = false,
bool  copyData = false 
)

Definition at line 566 of file testFitPerf.cxx.

§ DoFitVec() [1/3]

template<class MinType , class F >
int DoFitVec ( TTree tree,
F func,
int  n1,
int  n2,
const double *  p,
bool  debug = false,
bool  copyData = false 
)

Definition at line 571 of file testFitPerf.cxx.

§ DoFitVec() [2/3]

template<class MinType , class F >
int DoFitVec ( TH1 h1,
F func,
int  ,
int  ,
const double *  ,
bool  debug = false,
bool  copyData = false 
)

Definition at line 576 of file testFitPerf.cxx.

§ DoFitVec() [3/3]

template<class MinType , class F >
int DoFitVec ( TGraph gr,
F func,
int  ,
int  ,
const double *  ,
bool  debug = false,
bool  copyData = false 
)

Definition at line 580 of file testFitPerf.cxx.

§ DoUnBinFit()

template<class MinType , class T >
int DoUnBinFit ( T *  tree,
Func func,
bool  debug = false,
bool  copyData = false 
)

Definition at line 448 of file testFitPerf.cxx.

§ DoUnBinFitVec()

template<class MinType , class T , class VFunc >
int DoUnBinFitVec ( T *  tree,
VFunc &  func,
int  ndim,
int  npar,
const double *  p0,
bool  debug = false,
bool  copyData = false 
)

Definition at line 501 of file testFitPerf.cxx.

§ FillUnBinData()

ROOT::Fit::UnBinData* FillUnBinData ( TTree tree,
bool  copyData = true,
unsigned int  dim = 1 
)

Definition at line 92 of file testFitPerf.cxx.

§ FitUsingNewFitter()

template<class MinType , class FitObj , class FuncObj >
int FitUsingNewFitter ( FitObj *  fitobj,
FuncObj  func,
bool  useGrad = false 
)

Definition at line 586 of file testFitPerf.cxx.

§ gausnorm()

double gausnorm ( const double *  x,
const double *  p 
)

Definition at line 786 of file testFitPerf.cxx.

§ gausnorm2D()

double gausnorm2D ( const double *  x,
const double *  p 
)

Definition at line 789 of file testFitPerf.cxx.

§ gausnormN()

double gausnormN ( const double *  x,
const double *  p 
)

Definition at line 792 of file testFitPerf.cxx.

§ gaussian()

double gaussian ( const double *  x,
const double *  p 
)

Definition at line 783 of file testFitPerf.cxx.

§ main()

int main ( )

Definition at line 1102 of file testFitPerf.cxx.

§ poly2()

double poly2 ( const double *  x,
const double *  p 
)

Definition at line 640 of file testFitPerf.cxx.

§ printData() [1/2]

void printData ( const ROOT::Fit::UnBinData data)

Definition at line 76 of file testFitPerf.cxx.

§ printData() [2/2]

template<class T >
void printData ( const T &  data)

Definition at line 222 of file testFitPerf.cxx.

§ printResult()

void printResult ( int  iret)

Definition at line 83 of file testFitPerf.cxx.

§ testFitPerf()

int testFitPerf ( )

Definition at line 1055 of file testFitPerf.cxx.

§ testGausFit()

int testGausFit ( )

Definition at line 796 of file testFitPerf.cxx.

§ testLargeTreeFit()

int testLargeTreeFit ( int  nevt = 1000)

Definition at line 987 of file testFitPerf.cxx.

§ testPolyFit()

int testPolyFit ( )

Definition at line 644 of file testFitPerf.cxx.

§ testTreeFit()

int testTreeFit ( )

Definition at line 885 of file testFitPerf.cxx.

Variable Documentation

§ iniPar

double iniPar[2 *N]

Definition at line 72 of file testFitPerf.cxx.

§ N

const int N = 20

Definition at line 71 of file testFitPerf.cxx.

§ ndimObs

int ndimObs

Definition at line 73 of file testFitPerf.cxx.

Referenced by FitUsingNewFitter(), printData(), testLargeTreeFit(), and testTreeFit().

§ ndimPars

int ndimPars

Definition at line 74 of file testFitPerf.cxx.

Referenced by FitUsingNewFitter(), testLargeTreeFit(), and testTreeFit().

§ nfit

int nfit

Definition at line 70 of file testFitPerf.cxx.

§ USE_BRANCH

bool USE_BRANCH = false

Definition at line 91 of file testFitPerf.cxx.