Logo ROOT   6.10/09
Reference Guide
Functions | Variables
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"
#include "TStopwatch.h"
Include dependency graph for GAMinTutorial.cxx:

Functions

Double_t background (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)
 
int GAMinTutorial ()
 
Double_t gaussianPeak (Double_t *x, Double_t *par)
 
int main (int argc, char **argv)
 
const double * Min2Minimize (ROOT::Math::IMultiGenFunction &chi2Func, double &xm1, double &xm2)
 

Variables

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

Function Documentation

◆ background()

Double_t background ( Double_t x,
Double_t par 
)

Definition at line 23 of file GAMinTutorial.cxx.

◆ fitFunction()

Double_t fitFunction ( Double_t x,
Double_t par 
)

Definition at line 33 of file GAMinTutorial.cxx.

◆ GAMinimize()

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

Definition at line 47 of file GAMinTutorial.cxx.

◆ GAMinTutorial()

int GAMinTutorial ( )

Definition at line 164 of file GAMinTutorial.cxx.

◆ gaussianPeak()

Double_t gaussianPeak ( Double_t x,
Double_t par 
)

Definition at line 28 of file GAMinTutorial.cxx.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 242 of file GAMinTutorial.cxx.

◆ Min2Minimize()

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

Definition at line 111 of file GAMinTutorial.cxx.

Variable Documentation

◆ gAbsTolerance

const double gAbsTolerance = 0.1

Definition at line 40 of file GAMinTutorial.cxx.

◆ gVerbose

int gVerbose = 0

Definition at line 41 of file GAMinTutorial.cxx.

◆ ndata

const int ndata = 10000

Definition at line 39 of file GAMinTutorial.cxx.

◆ par0

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

Definition at line 38 of file GAMinTutorial.cxx.

◆ showGraphics

bool showGraphics = false

Definition at line 42 of file GAMinTutorial.cxx.