#include "TH1.h"#include "TH2.h"#include "TF1.h"#include "TF2.h"#include "TGraphErrors.h"#include "TGraphAsymmErrors.h"#include "TGraph2DErrors.h"#include "TSystem.h"#include "TRandom3.h"#include "TROOT.h"#include "TVirtualFitter.h"#include "Fit/BinData.h"#include "Fit/UnBinData.h"#include "HFitInterface.h"#include "Fit/Fitter.h"#include "Math/WrappedMultiTF1.h"#include "Math/WrappedParamFunction.h"#include "Math/WrappedTF1.h"#include "RConfigure.h"#include <string>#include <iostream>#include <cmath>Go to the source code of this file.
Classes | |
| class | Func1D |
| class | GradFunc2D |
Functions | |
| void | printData (const ROOT::Fit::BinData &data) |
| void | printData (const ROOT::Fit::UnBinData &data) |
| int | compareResult (double v1, double v2, std::string s="", double tol=0.01) |
| double | chi2FromFit (const TF1 *func) |
| int | testHisto1DFit () |
| int | testHisto1DPolFit () |
| int | testHisto2DFit () |
| int | testUnBin1DFit () |
| int | testGraphFit () |
| template<typename Test> | |
| int | testFit (Test t, std::string name) |
| int | main () |
Definition at line 65 of file testFit.cxx.
References func(), and TVirtualFitter::GetFitter().
Referenced by testHisto1DFit().
| int compareResult | ( | double | v1, | |
| double | v2, | |||
| std::string | s = "", |
|||
| double | tol = 0.01 | |||
| ) |
Definition at line 57 of file testFit.cxx.
Referenced by testGraphFit(), testHisto1DFit(), testHisto1DPolFit(), testHisto2DFit(), and testUnBin1DFit().
| int main | ( | void | ) |
Definition at line 929 of file testFit.cxx.
References testFit(), testGraphFit(), testHisto1DFit(), testHisto1DPolFit(), testHisto2DFit(), and testUnBin1DFit().
| void printData | ( | const ROOT::Fit::UnBinData & | data | ) |
| void printData | ( | const ROOT::Fit::BinData & | data | ) |
Definition at line 29 of file testFit.cxx.
References data, i, ROOT::Fit::BinData::kAsymError, ROOT::Fit::BinData::kCoordError, ROOT::Fit::BinData::kNoError, and ROOT::Fit::BinData::kValueError.
Referenced by testHisto1DFit(), and testHisto1DPolFit().
| int testFit | ( | Test | t, | |
| std::string | name | |||
| ) |
| int testGraphFit | ( | ) |
Definition at line 798 of file testFit.cxx.
References compareResult(), ROOT::Fit::FillData(), TGraph::Fit(), ROOT::Fit::Fitter::Fit(), func(), gr, ROOT::Fit::FitData::Opt(), p, ROOT::Fit::Fitter::Result(), ROOT::Fit::Fitter::SetFunction(), x, and y.
Referenced by main().
| int testHisto1DFit | ( | ) |
Definition at line 71 of file testFit.cxx.
References chi2FromFit(), compareResult(), ROOT::Fit::Fitter::Config(), d, TH2::Fill(), ROOT::Fit::FillData(), ROOT::Fit::DataOptions::fIntegral, TGraph::Fit(), TH1::Fit(), ROOT::Fit::Fitter::Fit(), func(), ROOT::Fit::DataOptions::fUseEmpty, TRandom::Gaus(), TGraph::GetErrorX(), TGraph::GetErrorY(), TROOT::GetFunction(), TGraph::GetN(), gr, gROOT, h1, i, ROOT::Fit::Fitter::LikelihoodFit(), ROOT::Fit::FitData::Opt(), p, TH1::Print(), printData(), ROOT::Fit::Fitter::Result(), rndm, and TVirtualFitter::SetDefaultFitter().
Referenced by main().
| int testHisto1DPolFit | ( | ) |
Definition at line 417 of file testFit.cxx.
References compareResult(), ROOT::Fit::Fitter::Config(), d, TH2::Fill(), ROOT::Fit::FillData(), TH1::Fit(), ROOT::Fit::Fitter::Fit(), func(), TROOT::GetFunction(), gROOT, h2, i, p, printData(), ROOT::Fit::Fitter::Result(), rndm, and ROOT::Math::WrappedTF1::SetParameters().
Referenced by main().
| int testHisto2DFit | ( | ) |
Definition at line 501 of file testFit.cxx.
References compareResult(), ROOT::Fit::Fitter::Config(), d, f2, TH2::Fill(), ROOT::Fit::FillData(), TH1::FindBin(), ROOT::Fit::Fitter::Fit(), func(), g2(), TH1::GetBinError(), TAxis::GetBinWidth(), TH1::GetXaxis(), h2, i, ROOT::Fit::Fitter::LikelihoodFit(), p, p0(), ROOT::Fit::Fitter::Result(), rndm, ROOT::Fit::Fitter::SetFunction(), TFormula::SetParameters(), ROOT::Fit::BinData::Size(), x, and y.
Referenced by main().
| int testUnBin1DFit | ( | ) |
Definition at line 697 of file testFit.cxx.
References compareResult(), ROOT::Fit::Fitter::Config(), d, ROOT::Fit::Fitter::Fit(), func(), TRandom::Gaus(), TROOT::GetFunction(), gROOT, i, n, p, ROOT::Fit::Fitter::Result(), rndm, and ROOT::Fit::Fitter::SetFunction().
Referenced by main().
1.5.1