Logo ROOT   6.10/09
Reference Guide
Classes | Macros | Typedefs | Functions | Variables
testUnbinGausFit.cxx File Reference
#include "TMath.h"
#include "TSystem.h"
#include "TRandom3.h"
#include "TTree.h"
#include "TROOT.h"
#include "Fit/UnBinData.h"
#include "Fit/Fitter.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 "Math/DistFunc.h"
#include <string>
#include <iostream>
#include "TStopwatch.h"
Include dependency graph for testUnbinGausFit.cxx:

Classes

struct  MINUIT2
 

Macros

#define DEBUG
 

Typedefs

typedef ROOT::Math::IParamMultiFunction Func
 

Functions

template<class MinType >
int DoFit (TTree *tree, Func &func, bool debug=false)
 
template<class MinType , class T >
int DoUnBinFit (T *tree, Func &func, bool debug=false)
 
ROOT::Fit::UnBinDataFillUnBinData (TTree *tree)
 
template<class MinType , class FitObj >
int FitUsingNewFitter (FitObj *fitobj, Func &func)
 
double gausnorm (const double *x, const double *p)
 
double gausSum (const double *x, const double *p)
 
int main ()
 
int testNdimFit ()
 

Variables

const std::string branchType = "x[1]/D"
 
double iniPar [NPar]
 
const int N = 1
 
const int NGaus = 3
 
const int NPar = 8
 
const int NPoints = 100000
 
const int strategy = 0
 
double truePar [NPar]
 

Macro Definition Documentation

◆ DEBUG

#define DEBUG

Definition at line 29 of file testUnbinGausFit.cxx.

Typedef Documentation

◆ Func

Definition at line 106 of file testUnbinGausFit.cxx.

Function Documentation

◆ DoFit()

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

Definition at line 196 of file testUnbinGausFit.cxx.

◆ DoUnBinFit()

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

Definition at line 108 of file testUnbinGausFit.cxx.

◆ FillUnBinData()

ROOT::Fit::UnBinData* FillUnBinData ( TTree tree)

Definition at line 69 of file testUnbinGausFit.cxx.

◆ FitUsingNewFitter()

template<class MinType , class FitObj >
int FitUsingNewFitter ( FitObj *  fitobj,
Func func 
)

Definition at line 209 of file testUnbinGausFit.cxx.

◆ gausnorm()

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

Definition at line 45 of file testUnbinGausFit.cxx.

◆ gausSum()

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

Definition at line 53 of file testUnbinGausFit.cxx.

◆ main()

int main ( )

Definition at line 329 of file testUnbinGausFit.cxx.

◆ testNdimFit()

int testNdimFit ( )

Definition at line 244 of file testUnbinGausFit.cxx.

Variable Documentation

◆ branchType

const std::string branchType = "x[1]/D"

Definition at line 36 of file testUnbinGausFit.cxx.

◆ iniPar

double iniPar[NPar]

Definition at line 41 of file testUnbinGausFit.cxx.

◆ N

const int N = 1

Definition at line 33 of file testUnbinGausFit.cxx.

◆ NGaus

const int NGaus = 3

Definition at line 34 of file testUnbinGausFit.cxx.

◆ NPar

const int NPar = 8

Definition at line 35 of file testUnbinGausFit.cxx.

◆ NPoints

const int NPoints = 100000

Definition at line 39 of file testUnbinGausFit.cxx.

◆ strategy

const int strategy = 0

Definition at line 43 of file testUnbinGausFit.cxx.

◆ truePar

double truePar[NPar]

Definition at line 40 of file testUnbinGausFit.cxx.