#include <TGo4FitMinuit.h>
Inheritance diagram for TGo4FitMinuit:
Public Methods | |
TGo4FitMinuit () | |
Default constructor. More... | |
TGo4FitMinuit (const char *Name) | |
Create TGo4FitMinuit object (action) with given name. More... | |
virtual | ~TGo4FitMinuit () |
Destroys TGo4FitMinuit object. More... | |
void | AddCommand (const char *iCommand) |
Add Minuit command to command list. More... | |
Int_t | GetNumCommands () |
Returns number of commands in list. More... | |
const char * | GetCommand (Int_t n) |
Return command with given index. More... | |
void | ClearCommands () |
Clear Minuit commands list. More... | |
Int_t | GetNumResults () |
Returns number of result objects. More... | |
TGo4FitMinuitResult * | GetResult (Int_t indx) |
Get TGo4FitMinuitResult object with given index. More... | |
TGo4FitMinuitResult * | FindResult (const char *ResName) |
Find result object with provided name. More... | |
void | AddResult (TGo4FitMinuitResult *res) |
Add result object to results list. More... | |
void | RemoveResult (TGo4FitMinuitResult *res) |
Remove result from results list and delete it. More... | |
void | ClearResults () |
Delete all results objects. More... | |
virtual Bool_t | NeedBuffers () const |
virtual void | DoAction (TGo4FitterAbstract *Fitter) |
Execute all Minuit commands. More... | |
virtual void | Print (Option_t *option) const |
Print information on standard output. More... | |
Protected Attributes | |
TObjArray | fxCommands |
List of minuit commands, presented by array of TObjString. More... | |
TObjArray | fxResults |
List of Tgo4FitMinuitResult objects. More... |
It uses standard ROOT TMinuit class [3]. TGo4FitMinuit class includes Minuit commands list, which will be executed during minimizatione. There are several methods of TGo4FitMinuit class to operate with command list: AddCommand() - add command to commands list; GetNumCommands() - get number of commands in list; GetCommand() - get command from list; ClearCommands() - clear commands list. To get full description of Minuit commands, see Minuit reference manual [4]. In additional to standard Minuit commands, one adds result command, which get status and results values from Minuit and store them as TGo4FitMinuitResult objects in TGo4FitMinuit results list. The syntax of command is
result [xxxx [result_name]]
where "result"- identifier of this command, "xxxx" - flags field (default - "1000"), "result_name"- optional name of result object (default - "Result"). The each "x" in flags field can be: "0" - option switched off or "1" - switched on. The meanings of flags are: 1. Storing of current parameters values and errors (ParValues and ParError arrays of doubles, TArrayD class). 2. Storing result of Minos error analysis (EPLUS, EMINUS, EPARAB & GLOBCC arrays of doubles). Normally should be used after "MINOs" command of Minuit. 3. Storing error matrice estimations to ERRORMATRIX (TMatrix class). Columns and strings in matrix, corresponds to fixed elements, will be set to 0. 4. Storing contour plot in CONTOX, CONTOY (both are arrays of doubles) and CONTOCH (array of char, TArrayC). Normally should be switched on after "MNContour" command of Minuit. Result object always store status values of Minuit (see MNSTAT command in Minuit reference manual [4]): FMIN - the best function value found so far; FEDM - the estimated vertical distance remaining to minimum; ERRDEF - the value of UP defining parameter uncertainties; NPARI - number of currently variable parameters; NPARX - the highest (external) parameter number defined by user; ISTAT - a status integer indicating how good is the covariance matrix. Several result commands can be present in Minuit command list and the same number of TGo4FitMinuitResult object will be present in TGo4FitMinuit object after minimization is finished. Results can be accessed via index, using GetNumResults() and GetResult() methods or via result name, using FindResult() method. The results objects always owned by TGo4FitMinuit object and stored together with it. Thus, if TGo4FitMinuit object will be saved together with fitter, the TGo4FitMinuitResult objects also will be stored and can be accessed later, then fitter will be loaded.
Definition at line 50 of file TGo4FitMinuit.h.
|
Default constructor.
Definition at line 53 of file TGo4FitMinuit.cxx. |
|
Create TGo4FitMinuit object (action) with given name.
Definition at line 56 of file TGo4FitMinuit.cxx. References fxCommands, and fxResults. |
|
Destroys TGo4FitMinuit object.
Definition at line 62 of file TGo4FitMinuit.cxx. |
|
Add Minuit command to command list. To get a full description of possible Minuit commands, see Minuit documentation. Definition at line 72 of file TGo4FitMinuit.h. References fxCommands. Referenced by TGo4FitterAbstract::AddSimpleMinuit(), BuildFitter(), and TGo4FitPanelSlots::Button_PerformFit(). |
|
Returns number of commands in list.
Definition at line 77 of file TGo4FitMinuit.h. References fxCommands. |
|
Return command with given index.
Definition at line 82 of file TGo4FitMinuit.h. References fxCommands, and n. |
|
Clear Minuit commands list.
Definition at line 87 of file TGo4FitMinuit.h. References fxCommands. |
|
Returns number of result objects.
Definition at line 92 of file TGo4FitMinuit.h. References fxResults. Referenced by TGo4FitPanelSlots::UpdateItem(). |
|
Get TGo4FitMinuitResult object with given index.
Definition at line 97 of file TGo4FitMinuit.h. References fxResults. Referenced by TGo4FitPanelSlots::UpdateItem(). |
|
Find result object with provided name.
Definition at line 103 of file TGo4FitMinuit.h. References fxResults. |
|
Add result object to results list.
Definition at line 109 of file TGo4FitMinuit.h. References fxResults. |
|
Remove result from results list and delete it.
Definition at line 114 of file TGo4FitMinuit.h. References fxResults. Referenced by TGo4FitPanelSlots::Cmd_DeleteMinuitResult(). |
|
Delete all results objects.
Definition at line 119 of file TGo4FitMinuit.h. References fxResults. |
|
Reimplemented from TGo4FitterAction. Definition at line 121 of file TGo4FitMinuit.h. |
|
Execute all Minuit commands.
Implements TGo4FitterAction. Definition at line 65 of file TGo4FitMinuit.cxx. References TGo4FitMinuitResult::CallMNEMAT(), TGo4FitMinuitResult::CallMNERRS(), TGo4FitMinuitResult::CallMNPOUT(), TGo4FitMinuitResult::CallMNSTAT(), fxCommands, fxResults, TGo4FitMinuitResult::GetContourPlot(), TGo4FitterAbstract::GetParEpsilon(), TGo4FitterAbstract::GetParFixed(), TGo4FitParsList::GetParFullName(), TGo4FitterAbstract::GetParRange(), TGo4FitParsList::GetParValue(), n, TGo4FitterAbstract::NumPars(), TGo4FitParsList::SetParError(), and TGo4FitParsList::SetParValue(). |
|
Print information on standard output.
Reimplemented from TGo4FitNamed. Definition at line 122 of file TGo4FitMinuit.cxx. References fxCommands, fxResults, n, and TGo4FitNamed::Print(). |
|
List of minuit commands, presented by array of TObjString.
Definition at line 138 of file TGo4FitMinuit.h. Referenced by AddCommand(), ClearCommands(), DoAction(), GetCommand(), GetNumCommands(), Print(), and TGo4FitMinuit(). |
|
List of Tgo4FitMinuitResult objects.
Definition at line 143 of file TGo4FitMinuit.h. Referenced by AddResult(), ClearResults(), DoAction(), FindResult(), GetNumResults(), GetResult(), Print(), RemoveResult(), and TGo4FitMinuit(). |