#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"
Go to the source code of this file.
Classes | |
struct | MINUIT2 |
Defines | |
#define | DEBUG |
Typedefs | |
typedef ROOT::Math::IParamMultiFunction | Func |
Functions | |
double | gausnorm (const double *x, const double *p) |
double | gausnormN (const double *x, const double *p) |
ROOT::Fit::UnBinData * | FillUnBinData (TTree *tree) |
template<class MinType, class T> | |
int | DoUnBinFit (T *tree, Func &func, bool debug=false) |
template<class MinType> | |
int | DoFit (TTree *tree, Func &func, bool debug=false) |
template<class MinType, class FitObj> | |
int | FitUsingNewFitter (FitObj *fitobj, Func &func) |
int | testNdimFit () |
int | main () |
Variables | |
const int | N = 10 |
const std::string | branchType = "x[10]/D" |
const int | NPoints = 100000 |
double | truePar [2 *N] |
double | iniPar [2 *N] |
const int | nfit = 1 |
const int | strategy = 0 |
#define DEBUG |
Definition at line 29 of file testNdimFit.cxx.
typedef ROOT::Math::IParamMultiFunction Func |
Definition at line 110 of file testNdimFit.cxx.
Definition at line 112 of file testNdimFit.cxx.
References ROOT::Math::chisquared_cdf_c(), ROOT::Fit::Fitter::Config(), d, debug, FillUnBinData(), ROOT::Fit::Fitter::Fit(), func(), i, N, name, ROOT::Fit::Fitter::Result(), ROOT::Fit::Fitter::SetFunction(), strategy, and truePar.
ROOT::Fit::UnBinData* FillUnBinData | ( | TTree * | tree | ) |
Definition at line 70 of file testNdimFit.cxx.
References d, TTree::GetBranch(), TTree::GetEntries(), TBranch::GetEntry(), i, j, m, N, n, and TBranch::SetAddress().
int FitUsingNewFitter | ( | FitObj * | fitobj, | |
Func & | func | |||
) |
int main | ( | void | ) |
int testNdimFit | ( | ) |
Definition at line 228 of file testNdimFit.cxx.
References TTree::Branch(), branchType, double, f2, TTree::Fill(), gausnormN(), i, iniPar, j, N, NPoints, s, truePar, and x.
Referenced by main().
const std::string branchType = "x[10]/D" |
Definition at line 44 of file testNdimFit.cxx.
const int N = 10 |
Definition at line 33 of file testNdimFit.cxx.
const int nfit = 1 |
Definition at line 45 of file testNdimFit.cxx.
const int NPoints = 100000 |
Definition at line 35 of file testNdimFit.cxx.
Referenced by G__G__MathCore_201_0_5(), G__G__MathCore_211_0_4(), G__G__MathCore_213_0_4(), G__G__MathFit_122_0_34(), G__G__MathFit_142_0_21(), G__G__MathFit_187_0_3(), and testNdimFit().
const int strategy = 0 |
Definition at line 46 of file testNdimFit.cxx.