ROOT
6.07/01
Reference Guide
|
#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"
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::UnBinData * | FillUnBinData (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 |
#define USE_CHI2_FIT |
typedef ROOT::Math::IParamMultiFunction Func |
Definition at line 220 of file testFitPerf.cxx.
int DoBinFit | ( | T * | hist, |
Func & | func, | ||
bool | debug = false , |
||
bool | useGrad = false |
||
) |
Definition at line 222 of file testFitPerf.cxx.
int DoFit | ( | TTree * | tree, |
Func & | func, | ||
bool | debug = false , |
||
bool | copyData = false |
||
) |
Definition at line 325 of file testFitPerf.cxx.
int DoFit | ( | TH1 * | h1, |
Func & | func, | ||
bool | debug = false , |
||
bool | copyData = false |
||
) |
Definition at line 329 of file testFitPerf.cxx.
int DoFit | ( | TGraph * | gr, |
Func & | func, | ||
bool | debug = false , |
||
bool | copyData = false |
||
) |
Definition at line 333 of file testFitPerf.cxx.
int DoUnBinFit | ( | T * | tree, |
Func & | func, | ||
bool | debug = false , |
||
bool | copyData = false |
||
) |
Definition at line 275 of file testFitPerf.cxx.
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().
int FitUsingNewFitter | ( | FitObj * | fitobj, |
Func & | func, | ||
bool | useGrad = false |
||
) |
Definition at line 338 of file testFitPerf.cxx.
Definition at line 484 of file testFitPerf.cxx.
Referenced by testTreeFit().
Definition at line 539 of file testFitPerf.cxx.
int FitUsingRooFit2 | ( | TTree * | tree | ) |
Definition at line 610 of file testFitPerf.cxx.
Referenced by testLargeTreeRooFit().
Definition at line 377 of file testFitPerf.cxx.
int FitUsingTTreeFit | ( | TTree * | tree, |
TF1 * | func, | ||
const std::string & | vars = "x" |
||
) |
Definition at line 437 of file testFitPerf.cxx.
Definition at line 800 of file testFitPerf.cxx.
Referenced by gausnorm(), gausnorm2D(), gausnormN(), and testTreeFit().
Definition at line 807 of file testFitPerf.cxx.
Referenced by gausnorm2D(), and testTreeFit().
Definition at line 811 of file testFitPerf.cxx.
Referenced by gausnormN(), and testLargeTreeFit().
Definition at line 794 of file testFitPerf.cxx.
Referenced by gaussian(), testGausFit(), and testStatFunc().
int main | ( | ) |
Definition at line 1130 of file testFitPerf.cxx.
Definition at line 715 of file testFitPerf.cxx.
Referenced by TGeoToOCC::OCC_Arb8(), and testPolyFit().
void printData | ( | const ROOT::Fit::UnBinData & | data | ) |
Definition at line 64 of file testFitPerf.cxx.
Definition at line 210 of file testFitPerf.cxx.
void printResult | ( | int | iret | ) |
Definition at line 71 of file testFitPerf.cxx.
Referenced by testGausFit(), testLargeTreeFit(), testLargeTreeRooFit(), testPolyFit(), and testTreeFit().
int testFitPerf | ( | ) |
Definition at line 1087 of file testFitPerf.cxx.
Referenced by main().
int testGausFit | ( | ) |
Definition at line 820 of file testFitPerf.cxx.
Referenced by testFitPerf().
int testLargeTreeFit | ( | int | nevt = 1000 | ) |
Definition at line 995 of file testFitPerf.cxx.
Referenced by testFitPerf().
int testLargeTreeRooFit | ( | int | nevt = 1000 | ) |
Definition at line 1043 of file testFitPerf.cxx.
Referenced by testFitPerf().
int testPolyFit | ( | ) |
Definition at line 719 of file testFitPerf.cxx.
Referenced by testFitPerf().
int testTreeFit | ( | ) |
Definition at line 914 of file testFitPerf.cxx.
Referenced by testFitPerf().
Definition at line 61 of file testFitPerf.cxx.
Referenced by FitUsingNewFitter(), FitUsingRooFit(), FitUsingRooFit2(), FitUsingTFit(), FitUsingTTreeFit(), testGausFit(), testLargeTreeFit(), testLargeTreeRooFit(), testPolyFit(), and testTreeFit().
const int N = 20 |
Definition at line 60 of file testFitPerf.cxx.
Referenced by FillUnBinData(), FitUsingRooFit2(), gausnormN(), testLargeTreeFit(), and testLargeTreeRooFit().
int nfit |
Definition at line 59 of file testFitPerf.cxx.
Referenced by FitUsingNewFitter(), FitUsingRooFit(), FitUsingRooFit2(), FitUsingTFit(), FitUsingTTreeFit(), and testFitPerf().
bool USE_BRANCH = false |
Definition at line 79 of file testFitPerf.cxx.
Referenced by FillUnBinData().