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 "RooDataHist.h"
#include "RooDataSet.h"
#include "RooRealVar.h"
#include "RooGaussian.h"
#include "RooMinuit.h"
#include "RooChi2Var.h"
#include "RooGlobalFunc.h"
#include "RooFitResult.h"
#include "RooProdPdf.h"
#include <cassert>
#include "MinimizerTypes.h"
+ Include dependency graph for testFitPerf.cxx:

Go to the source code of this file.

Macros

#define USE_CHI2_FIT
 

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 >
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 FitObj >
int FitUsingNewFitter (FitObj *fitobj, Func &func, bool useGrad=false)
 
template<class T , class MinType >
int FitUsingTFit (T *hist, TF1 *func)
 
template<class MinType >
int FitUsingTTreeFit (TTree *tree, TF1 *func, const std::string &vars="x")
 
int FitUsingRooFit (TH1 *hist, TF1 *func)
 
int FitUsingRooFit (TTree *tree, TF1 *func)
 
int FitUsingRooFit2 (TTree *tree)
 
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 testLargeTreeRooFit (int nevt=1000)
 
int testFitPerf ()
 
int main ()
 

Variables

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

Macro Definition Documentation

§ USE_CHI2_FIT

#define USE_CHI2_FIT

Typedef Documentation

§ Func

Definition at line 220 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 222 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 325 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 329 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 333 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 275 of file testFitPerf.cxx.

§ FillUnBinData()

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

Definition at line 80 of file testFitPerf.cxx.

Referenced by DoUnBinFit(), DoUnBinFitVec(), and FillUnBinData().

§ FitUsingNewFitter()

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

Definition at line 338 of file testFitPerf.cxx.

§ FitUsingRooFit() [1/2]

int FitUsingRooFit ( TH1 hist,
TF1 func 
)

Definition at line 484 of file testFitPerf.cxx.

Referenced by testTreeFit().

§ FitUsingRooFit() [2/2]

int FitUsingRooFit ( TTree tree,
TF1 func 
)

Definition at line 539 of file testFitPerf.cxx.

§ FitUsingRooFit2()

int FitUsingRooFit2 ( TTree tree)

Definition at line 610 of file testFitPerf.cxx.

Referenced by testLargeTreeRooFit().

§ FitUsingTFit()

template<class T , class MinType >
int FitUsingTFit ( T *  hist,
TF1 func 
)

Definition at line 377 of file testFitPerf.cxx.

§ FitUsingTTreeFit()

template<class MinType >
int FitUsingTTreeFit ( TTree tree,
TF1 func,
const std::string &  vars = "x" 
)

Definition at line 437 of file testFitPerf.cxx.

§ gausnorm()

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

Definition at line 800 of file testFitPerf.cxx.

Referenced by gausnorm(), gausnorm2D(), gausnormN(), testPolyFit(), and testTreeFit().

§ gausnorm2D()

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

Definition at line 807 of file testFitPerf.cxx.

Referenced by gausnorm2D(), testPolyFit(), and testTreeFit().

§ gausnormN()

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

Definition at line 811 of file testFitPerf.cxx.

Referenced by gausnormN(), testLargeTreeFit(), and testPolyFit().

§ gaussian()

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

Definition at line 794 of file testFitPerf.cxx.

Referenced by gaussian(), testGausFit(), testPolyFit(), and testStatFunc().

§ main()

int main ( )

Definition at line 1130 of file testFitPerf.cxx.

§ poly2()

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

Definition at line 715 of file testFitPerf.cxx.

Referenced by TGeoToOCC::OCC_Arb8(), and testPolyFit().

§ printData() [1/2]

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

Definition at line 64 of file testFitPerf.cxx.

§ printData() [2/2]

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

Definition at line 210 of file testFitPerf.cxx.

§ printResult()

void printResult ( int  iret)

§ testFitPerf()

int testFitPerf ( )

Definition at line 1087 of file testFitPerf.cxx.

Referenced by main().

§ testGausFit()

int testGausFit ( )

Definition at line 820 of file testFitPerf.cxx.

Referenced by testFitPerf().

§ testLargeTreeFit()

int testLargeTreeFit ( int  nevt = 1000)

Definition at line 995 of file testFitPerf.cxx.

Referenced by testFitPerf().

§ testLargeTreeRooFit()

int testLargeTreeRooFit ( int  nevt = 1000)

Definition at line 1043 of file testFitPerf.cxx.

Referenced by testFitPerf().

§ testPolyFit()

int testPolyFit ( )

Definition at line 719 of file testFitPerf.cxx.

Referenced by testFitPerf().

§ testTreeFit()

int testTreeFit ( )

Definition at line 914 of file testFitPerf.cxx.

Referenced by testFitPerf().

Variable Documentation

§ iniPar

double iniPar[2 *N]

§ N

const int N = 20

§ nfit

int nfit

§ USE_BRANCH

bool USE_BRANCH = false

Definition at line 79 of file testFitPerf.cxx.

Referenced by FillUnBinData().