Logo ROOT   6.10/09
Reference Guide
Classes | Macros | Typedefs | Functions | Variables
testNdimFit.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 testNdimFit.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 gausnormN (const double *x, const double *p)
 
int main ()
 
int testNdimFit ()
 

Variables

const std::string branchType = "x[10]/D"
 
double iniPar [2 *N]
 
const int N = 10
 
const int NPoints = 100000
 
const int strategy = 0
 
double truePar [2 *N]
 

Macro Definition Documentation

◆ DEBUG

#define DEBUG

Definition at line 29 of file testNdimFit.cxx.

Typedef Documentation

◆ Func

Definition at line 110 of file testNdimFit.cxx.

Function Documentation

◆ DoFit()

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

Definition at line 183 of file testNdimFit.cxx.

◆ DoUnBinFit()

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

Definition at line 112 of file testNdimFit.cxx.

◆ FillUnBinData()

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

Definition at line 70 of file testNdimFit.cxx.

◆ FitUsingNewFitter()

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

Definition at line 196 of file testNdimFit.cxx.

◆ gausnorm()

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

Definition at line 48 of file testNdimFit.cxx.

◆ gausnormN()

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

Definition at line 56 of file testNdimFit.cxx.

◆ main()

int main ( )

Definition at line 281 of file testNdimFit.cxx.

◆ testNdimFit()

int testNdimFit ( )

Definition at line 228 of file testNdimFit.cxx.

Variable Documentation

◆ branchType

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

Definition at line 34 of file testNdimFit.cxx.

◆ iniPar

double iniPar[2 *N]

Definition at line 44 of file testNdimFit.cxx.

◆ N

const int N = 10

Definition at line 33 of file testNdimFit.cxx.

◆ NPoints

const int NPoints = 100000

Definition at line 35 of file testNdimFit.cxx.

◆ strategy

const int strategy = 0

Definition at line 46 of file testNdimFit.cxx.

◆ truePar

double truePar[2 *N]

Definition at line 43 of file testNdimFit.cxx.