1 #ifndef ALITMINUITTOOLKIT_H 2 #define ALITMINUITTOOLKIT_H 98 #include <TVectorDfwd.h> 99 #include <TMatrixDfwd.h> 118 AliTMinuitToolkit(
const char *streamerName=
nullptr,
const char *mode=
"recreate");
121 void SetStreamer(
const char *streamerName,
const char *mode=
"recreate");
125 void Fit(Option_t* option =
"");
126 void FitHistogram(
const TH1 *his, Option_t* option =
"");
127 void FitGraph(
const TGraph *
gr, Option_t* option =
"");
128 Long64_t
FillFitter(TTree *
inputTree, TString values, TString variables, TString selection, Int_t firstEntry, Int_t nEntries, Bool_t doReset=kTRUE);
130 void Bootstrap(ULong_t nIter,
const char* reportName, Option_t *option=
nullptr);
132 void MISAC(Int_t nFitPoints, UInt_t nIter,
const char*reportName, Option_t *option=
nullptr);
143 static void FitterFCN(
int &nParam,
double *
info,
double &
chi2,
double *gin,
int iflag);
162 static AliTMinuitToolkit *
Fit(TH1* his,
const char *fitterName, Option_t* fitOption =
"", Option_t* hisOption =
"", Option_t *funOption=
"", Double_t xMin = 0, Double_t xMax = 0);
163 static AliTMinuitToolkit *
Fit(TGraph* graph,
const char *fitterName, Option_t* fitOption =
"", Option_t* graphOption =
"", Option_t* funOption=
"",Double_t xMin = 0, Double_t xMax = 0);
170 static Double_t
HuberLogLike(
const Double_t *x,
const Double_t *p);
173 static Double_t
RndmGaus(Double_t mean=0, Double_t sigma=1);
174 static Double_t
RndmLandau(Double_t mean=0, Double_t sigma=1);