GAMinTutorial.cxx File Reference

#include "TH1.h"
#include "TF1.h"
#include "Fit/BinData.h"
#include "Fit/Chi2FCN.h"
#include "Math/WrappedMultiTF1.h"
#include "Math/Minimizer.h"
#include "Math/GeneticMinimizer.h"
#include "Math/Factory.h"
#include "HFitInterface.h"
#include "TMath.h"
#include "TApplication.h"
#include "TLegend.h"
#include "TCanvas.h"
#include "TStyle.h"

Go to the source code of this file.

Functions

Double_t background (Double_t *x, Double_t *par)
Double_t gaussianPeak (Double_t *x, Double_t *par)
Double_t fitFunction (Double_t *x, Double_t *par)
int GAMinimize (ROOT::Math::IMultiGenFunction &chi2Func, double &xm1, double &xm2)
const doubleMin2Minimize (ROOT::Math::IMultiGenFunction &chi2Func, double xm1, double xm2)
int GAMinTutorial ()
int main (int argc, char **argv)

Variables

double par0 [8] = { 1, 0.05, 10 , 2, 0.5 , 10 , 7 , 1. }
const int ndata = 10000
const double gAbsTolerance = 0.1
const int gVerbose = 0


Function Documentation

Double_t background ( Double_t x,
Double_t par 
)

Definition at line 22 of file GAMinTutorial.cxx.

Double_t fitFunction ( Double_t x,
Double_t par 
)

Definition at line 32 of file GAMinTutorial.cxx.

References background, and gaussianPeak().

Referenced by FittingDemo(), GAMinTutorial(), minuit2FitBench(), minuit2FitBench2D(), and testFitters().

int GAMinimize ( ROOT::Math::IMultiGenFunction chi2Func,
double xm1,
double xm2 
)

Definition at line 45 of file GAMinTutorial.cxx.

References copy(), DEBUG, gAbsTolerance, gVerbose, i, min, ROOT::Math::IBaseFunctionMultiDim::NDim(), par0, ROOT::Math::Util::ToString(), and x0.

Referenced by GAMinTutorial().

int GAMinTutorial (  ) 

Definition at line 138 of file GAMinTutorial.cxx.

References TLegend::AddEntry(), TF1::Copy(), d, TF1::Draw(), TH1::Draw(), TLegend::Draw(), TF1::DrawCopy(), TH2::Fill(), ROOT::Fit::FillData(), fitFunc, fitFunction(), GAMinimize(), TF1::GetRandom(), gPad, gStyle, h1, i, kBlue, kRed, kYellow, legend, Min2Minimize(), ndata, par0, TAttFill::SetFillColor(), TAttLine::SetLineColor(), TStyle::SetOptStat(), TFormula::SetParameters(), x1, and x2.

Referenced by main().

Double_t gaussianPeak ( Double_t x,
Double_t par 
)

Definition at line 27 of file GAMinTutorial.cxx.

References TMath::Gaus().

Referenced by fitFunction().

int main ( int  argc,
char **  argv 
)

Definition at line 194 of file GAMinTutorial.cxx.

References GAMinTutorial(), and TApplication::Run().

const double* Min2Minimize ( ROOT::Math::IMultiGenFunction chi2Func,
double  xm1,
double  xm2 
)

Definition at line 93 of file GAMinTutorial.cxx.

References copy(), ROOT::Math::Factory::CreateMinimizer(), DEBUG, gAbsTolerance, gVerbose, i, min, ROOT::Math::IBaseFunctionMultiDim::NDim(), par0, ROOT::Math::Util::ToString(), and x0.

Referenced by GAMinTutorial().


Variable Documentation

const double gAbsTolerance = 0.1

Definition at line 39 of file GAMinTutorial.cxx.

Referenced by DoNewMinimization(), DoOldMinimization(), GAMinimize(), Min2Minimize(), RunFletcher(), RunGoldStein1(), RunGoldStein2(), RunPowell(), RunRosenBrock(), RunTrigoFletcher(), and RunWood4().

const int gVerbose = 0

Definition at line 40 of file GAMinTutorial.cxx.

Referenced by AnalysePS(), astress_decomp(), astress_decomp_io(), astress_eigen(), astress_lineqn(), astress_pseudo(), DoNewMinimization(), DoOldMinimization(), GAMinimize(), main(), Min2Minimize(), mstress_allocation(), mstress_binary_ebe_op(), mstress_determinant(), mstress_element_op(), mstress_inversion(), mstress_matrix_fill(), mstress_matrix_io(), mstress_matrix_promises(), mstress_mm_multiplications(), mstress_norms(), mstress_special_creation(), mstress_sym_mm_multiplications(), mstress_transposition(), mstress_vm_multiplications(), RunFletcher(), RunGoldStein1(), RunGoldStein2(), RunPowell(), RunRosenBrock(), RunTrigoFletcher(), RunWood4(), spstress_allocation(), spstress_binary_ebe_op(), spstress_element_op(), spstress_matrix_fill(), spstress_matrix_io(), spstress_matrix_slices(), spstress_mm_multiplications(), spstress_norms(), spstress_transposition(), spstress_vm_multiplications(), stress_allocation(), stress_binary_ebe_op(), stress_binary_op(), stress_determinant(), stress_element_op(), stress_inversion(), stress_matrix(), stress_matrix_fill(), stress_matrix_io(), stress_matrix_promises(), stress_matrix_slices(), stress_mm_multiplications(), stress_norms(), stress_special_creation(), stress_sym_mm_multiplications(), stress_transposition(), stress_vector(), stress_vector_io(), stress_vm_multiplications(), stressGraphics(), stressLinear(), test_svd_expansion(), vstress_allocation(), vstress_binary_op(), vstress_element_op(), vstress_matrix_slices(), vstress_norms(), and vstress_vector_io().

const int ndata = 10000

Definition at line 38 of file GAMinTutorial.cxx.

Referenced by TSpider::AddVariable(), TMVA::DataSetFactory::BuildEventVector(), TStreamerInfo::Compile(), TTreePlayer::CopyTree(), TStreamerInfoActions::TActionSequence::CreateReadMemberWiseActions(), ROOT::Minuit2::FumiliFCNAdapter< Function >::EvaluateAll(), TFumiliMinimizer::EvaluateFCN(), GAMinTutorial(), TTreeTableInterface::InitEntries(), TBranchElement::InitInfo(), TSpider::InitVariables(), main(), LogLikeFCN::operator()(), TTreePlayer::Principal(), TProofDraw::Process(), TSelectorEntries::Process(), TSelectorDraw::ProcessFillMultiple(), TSelectorDraw::ProcessFillObject(), TTreePlayer::Query(), TTreePlayer::Scan(), TSpider::SetCurrentEntries(), TSPlot::SetTreeSelection(), and TBranchElement::Unroll().

double par0[8] = { 1, 0.05, 10 , 2, 0.5 , 10 , 7 , 1. }

Definition at line 37 of file GAMinTutorial.cxx.

Referenced by combinedFit(), GAMinimize(), GAMinTutorial(), TF1::GradientPar(), Min2Minimize(), and multidimSampling().


Generated on Tue Jul 5 16:06:55 2011 for ROOT_528-00b_version by  doxygen 1.5.1