#include "TH1.h"
#include "TH2.h"
#include "THnSparse.h"
#include "TGraph.h"
#include "TGraph2D.h"
#include "TGraphErrors.h"
#include "TGraph2DErrors.h"
#include "TTree.h"
#include "TF1.h"
#include "TF2.h"
#include "Math/IFunction.h"
#include "Math/IParamFunction.h"
#include "TMath.h"
#include "Math/DistFunc.h"
#include "TUnuran.h"
#include "TUnuranMultiContDist.h"
#include "Math/MinimizerOptions.h"
#include "TBackCompFitter.h"
#include "TVirtualFitter.h"
#include "Math/WrappedTF1.h"
#include "Math/WrappedMultiTF1.h"
#include "Fit/BinData.h"
#include "Fit/UnBinData.h"
#include "HFitInterface.h"
#include "Fit/Fitter.h"
#include "TRandom3.h"
#include "TROOT.h"
#include "TBenchmark.h"
#include "TCanvas.h"
#include "TApplication.h"
#include <vector>
#include <string>
#include <cassert>
#include <cmath>
#include "Riostream.h"
Go to the source code of this file.
enum cmpOpts |
Definition at line 125 of file stressHistoFit.cxx.
enum testOpt |
Definition at line 387 of file stressHistoFit.cxx.
Definition at line 185 of file stressHistoFit.cxx.
References i, k, rndm, and TRandom::Uniform().
Referenced by test1DObjects(), test2DObjects(), testAddVar1(), testAddVar2(), testAddVarProf1(), testAddVarProf2(), testAssignProfileVar1D(), testAssignVar1D(), testCloneProfileVar1D(), testCloneVar1D(), testCopyConstructorProfileVar1D(), testCopyConstructorVar1D(), testDivideVar1(), testDivideVar2(), testInterpolationVar1D(), testMergeProfVar1D(), testMergeVar1D(), testMulVar1(), testMulVar2(), testWriteReadProfileVar1D(), and testWriteReadVar1D().
Definition at line 300 of file stressHistoFit.cxx.
References TMath::Gaus().
Referenced by init_structures().
Definition at line 323 of file stressHistoFit.cxx.
References TMath::Gaus().
Referenced by init_structures().
Definition at line 335 of file stressHistoFit.cxx.
References c, exp(), TMath::Pi(), result(), sqrt(), and u.
Referenced by gausNd(), init_structures(), and testUnBinnedFit().
Definition at line 351 of file stressHistoFit.cxx.
References Error, gaus2dnormal(), i, and ROOT::Math::normal_pdf().
Referenced by init_structures(), and testUnBinnedFit().
Definition at line 329 of file stressHistoFit.cxx.
References TMath::Gaus().
Referenced by init_structures().
void init_structures | ( | ) |
Definition at line 969 of file stressHistoFit.cxx.
References cmpPars, commonAlgos, gaus1DImpl(), gaus2DImpl(), gaus2dnormal(), gausNd(), gausNormal(), graphErrorAlgos, histGaus2D, l1DFunctions, l1DLinearFunctions, l2DFunctions, l2DLinearFunctions, linearAlgos, listAlgosTGraph, listAlgosTGraph2D, listAlgosTGraph2DError, listAlgosTGraphError, listLinearAlgos, listTH1DAlgos, listTH2DAlgos, noGraphAlgos, noGraphErrorAlgos, poly1DImpl(), poly2DImpl(), simplexAlgos, specialAlgos, and treeFunctions.
Referenced by stressFit().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 1161 of file stressHistoFit.cxx.
References __DRAW__, TApplication::Run(), and stressFit().
void printSeparator | ( | ) |
Definition at line 476 of file stressHistoFit.cxx.
References fflush().
Referenced by testFitters().
Definition at line 446 of file stressHistoFit.cxx.
References fflush(), func(), str, and ROOT::Math::Util::ToString().
Referenced by testFitters().
void printTitle | ( | TF1 * | func | ) |
Definition at line 464 of file stressHistoFit.cxx.
References fflush(), func(), i, and n.
Referenced by G__G__RooFitCore2_111_0_5(), and testFitters().
void setColor | ( | int | red = 0 |
) |
Definition at line 485 of file stressHistoFit.cxx.
References command, red, and sprintf().
Referenced by TQtBrush::SetColorOwn(), TQtPen::SetLineColor(), and testFit().
Definition at line 253 of file stressHistoFit.cxx.
References func().
Referenced by test1DObjects(), and test2DObjects().
int stressFit | ( | ) |
Definition at line 1123 of file stressHistoFit.cxx.
References TBenchmark::GetCpuTime(), TROOT::GetSvnBranch(), TROOT::GetSvnRevision(), TROOT::GetVersion(), gROOT, init_structures(), l1DFunctions, l1DLinearFunctions, l2DFunctions, l2DLinearFunctions, listAlgosTGraph, listAlgosTGraph2D, listAlgosTGraph2DError, listAlgosTGraphError, listLinearAlgos, listTH1DAlgos, listTH2DAlgos, TBenchmark::Print(), rndm, TRandom3::SetSeed(), TBenchmark::Start(), TBenchmark::Stop(), test1DObjects(), test2DObjects(), and testUnBinnedFit().
int test1DObjects | ( | vector< vector< algoType > > & | listH, | |
vector< vector< algoType > > & | listG, | |||
vector< vector< algoType > > & | listGE, | |||
vector< fitFunctions > & | listOfFunctions | |||
) |
Definition at line 641 of file stressHistoFit.cxx.
References __DRAW__, c1, THnSparse::CreateSparse(), TGraph::Draw(), TH1::Draw(), TH2::Fill(), FillVariableRange(), func(), TH1::GetBinCenter(), TH1::GetNbinsX(), h1, h2, i, j, name, TRandom::Poisson(), rndm, s1, TNamed::SetName(), SetParsLimits(), TGraph::SetTitle(), and testFitters().
Referenced by stressFit().
int test2DObjects | ( | vector< vector< algoType > > & | listH, | |
vector< vector< algoType > > & | listG, | |||
vector< vector< algoType > > & | listGE, | |||
vector< fitFunctions > & | listOfFunctions | |||
) |
Definition at line 733 of file stressHistoFit.cxx.
References __DRAW__, c1, THnSparse::CreateSparse(), TH1::Draw(), TGraph2D::Draw(), TH2::Fill(), FillVariableRange(), func(), TAxis::GetBinCenter(), TH1::GetBinError(), TAxis::GetBinWidth(), TH1::GetNbinsX(), TH1::GetNbinsY(), TH1::GetXaxis(), TH1::GetYaxis(), h, h1, h2, i, j, name, TRandom::Poisson(), rndm, s1, TGraph2D::SetName(), SetParsLimits(), TGraph2DErrors::SetPoint(), TGraph2DErrors::SetPointError(), TGraph2D::SetTitle(), testFitters(), x, and y.
Referenced by stressFit().
int testFit | ( | const char * | str1, | |
const char * | str2, | |||
const char * | str3, | |||
TF1 * | func, | |||
CompareResult const & | cmpResult, | |||
int | opts | |||
) |
Definition at line 503 of file stressHistoFit.cxx.
References debug, fflush(), func(), TBackCompFitter::GetFitResult(), TVirtualFitter::GetFitter(), i, ROOT::Fit::FitResult::LowerError(), max, n, CompareResult::parameters(), setColor(), sqrt(), testOptCheck, testOptChi, testOptColor, testOptDebug, testOptErr, testOptPars, and ROOT::Fit::FitResult::UpperError().
int testFitters | ( | T * | object, | |
F * | func, | |||
vector< vector< algoType > > & | listAlgos, | |||
fitFunctions const & | fitFunction | |||
) |
Definition at line 578 of file stressHistoFit.cxx.
References commonAlgos, double, fflush(), fitFunction(), func(), i, j, opts, printSeparator(), printTestName(), printTitle(), ROOT::Math::MinimizerOptions::SetDefaultMinimizer(), testFit(), testOptChi, testOptDebug, testOptErr, testOptPars, and type.
Referenced by test1DObjects(), test2DObjects(), and testUnBinnedFit().
int testUnBinnedFit | ( | int | n = 10000 |
) |
Definition at line 881 of file stressHistoFit.cxx.
References TTree::Branch(), commonAlgos, ROOT::Math::gv_detail::dist(), f2, TTree::Fill(), TF1::FixParameter(), func(), TRandom::Gaus(), gaus2dnormal(), gausNd(), i, TUnuran::Init(), n, name, rndm, TUnuran::SampleMulti(), TreeWrapper::set(), TFormula::SetParameters(), simplexAlgos, testFitters(), treeFunctions, u, w, x, and y.
Referenced by stressFit().
const unsigned int __DRAW__ = 0 |
Definition at line 121 of file stressHistoFit.cxx.
Definition at line 223 of file stressHistoFit.cxx.
Referenced by init_structures(), testFitters(), and testUnBinnedFit().
int defaultOptions = testOptColor | testOptCheck |
Definition at line 397 of file stressHistoFit.cxx.
int gTestIndex = 0 |
Definition at line 444 of file stressHistoFit.cxx.
Definition at line 293 of file stressHistoFit.cxx.
Referenced by init_structures(), and stressFit().
Definition at line 296 of file stressHistoFit.cxx.
Referenced by init_structures(), and stressFit().
Definition at line 294 of file stressHistoFit.cxx.
Referenced by init_structures(), and stressFit().
Definition at line 297 of file stressHistoFit.cxx.
Referenced by init_structures(), and stressFit().
Definition at line 233 of file stressHistoFit.cxx.
Referenced by init_structures(), and stressFit().
Definition at line 239 of file stressHistoFit.cxx.
Referenced by init_structures(), and stressFit().
Definition at line 240 of file stressHistoFit.cxx.
Referenced by init_structures(), and stressFit().
Definition at line 234 of file stressHistoFit.cxx.
Referenced by init_structures(), and stressFit().
Definition at line 236 of file stressHistoFit.cxx.
Referenced by init_structures(), and stressFit().
Definition at line 232 of file stressHistoFit.cxx.
Referenced by init_structures(), and stressFit().
Definition at line 238 of file stressHistoFit.cxx.
Referenced by init_structures(), and stressFit().
Definition at line 380 of file stressHistoFit.cxx.
Referenced by TFractionFitter::CheckConsistency(), TFractionFitter::ComputeChisquareLambda(), TFractionFitter::ComputeFCN(), and TGLCameraOverlay::RenderAxis().
Definition at line 382 of file stressHistoFit.cxx.
Referenced by TFractionFitter::CheckConsistency(), TFractionFitter::ComputeChisquareLambda(), TFractionFitter::ComputeFCN(), and TGLCameraOverlay::RenderAxis().
Definition at line 379 of file stressHistoFit.cxx.
Referenced by TFractionFitter::CheckConsistency(), TFractionFitter::ComputeChisquareLambda(), TFractionFitter::ComputeFCN(), and TGLCameraOverlay::RenderAxis().
Definition at line 381 of file stressHistoFit.cxx.
Referenced by TFractionFitter::CheckConsistency(), TFractionFitter::ComputeChisquareLambda(), TFractionFitter::ComputeFCN(), and TGLCameraOverlay::RenderAxis().
const int nbinsX = 30 |
Definition at line 383 of file stressHistoFit.cxx.
const int nbinsY = 30 |
Definition at line 384 of file stressHistoFit.cxx.
Definition at line 123 of file stressHistoFit.cxx.
Referenced by TClSession::Create(), FillHisto(), FillVariableRange(), TMVA::DataSetFactory::MixEvents(), TrigoFletcherFunction::StartPoints(), stressFit(), test1DObjects(), test2DObjects(), testHisto1DFit(), testHisto1DPolFit(), testHisto2DFit(), testUnBin1DFit(), and testUnBinnedFit().
Definition at line 224 of file stressHistoFit.cxx.
Referenced by init_structures(), and testUnBinnedFit().
Definition at line 295 of file stressHistoFit.cxx.
Referenced by init_structures(), and testUnBinnedFit().