|
GSI Object Oriented Online Offline (Go4) GO4-6.4.5
|
Minuit minimization action. More...
#include <TGo4FitMinuit.h>
Public Member Functions | |
| TGo4FitMinuit () | |
| Default constructor. | |
| TGo4FitMinuit () | |
| Default constructor. | |
| TGo4FitMinuit (const char *Name) | |
| Create TGo4FitMinuit object (action) with given name. | |
| TGo4FitMinuit (const char *Name) | |
| Create TGo4FitMinuit object (action) with given name. | |
| virtual | ~TGo4FitMinuit () |
| Destroys TGo4FitMinuit object. | |
| virtual | ~TGo4FitMinuit () |
| Destroys TGo4FitMinuit object. | |
| void | AddCommand (const char *iCommand) |
| Add Minuit command to command list. | |
| void | AddCommand (const char *iCommand) |
| Add Minuit command to command list. | |
| void | AddResult (TGo4FitMinuitResult *res) |
| Add result object to results list. | |
| void | AddResult (TGo4FitMinuitResult *res) |
| Add result object to results list. | |
| void | ClearCommands () |
| Clear Minuit commands list. | |
| void | ClearCommands () |
| Clear Minuit commands list. | |
| void | ClearResults () |
| Delete all results objects. | |
| void | ClearResults () |
| Delete all results objects. | |
| void | DoAction (TGo4FitterAbstract *Fitter) override |
| Execute all Minuit commands. | |
| void | DoAction (TGo4FitterAbstract *Fitter) override |
| Execute all Minuit commands. | |
| TGo4FitMinuitResult * | FindResult (const char *ResName) |
| Find result object with provided name. | |
| TGo4FitMinuitResult * | FindResult (const char *ResName) |
| Find result object with provided name. | |
| const char * | GetCommand (Int_t n) const |
| Return command with given index. | |
| const char * | GetCommand (Int_t n) const |
| Return command with given index. | |
| Int_t | GetNumCommands () const |
| Returns number of commands in list. | |
| Int_t | GetNumCommands () const |
| Returns number of commands in list. | |
| Int_t | GetNumResults () const |
| Returns number of result objects. | |
| Int_t | GetNumResults () const |
| Returns number of result objects. | |
| TGo4FitMinuitResult * | GetResult (Int_t indx) const |
| Get TGo4FitMinuitResult object with given index. | |
| TGo4FitMinuitResult * | GetResult (Int_t indx) const |
| Get TGo4FitMinuitResult object with given index. | |
| Bool_t | NeedBuffers () const override |
| Bool_t | NeedBuffers () const override |
| void | Print (Option_t *option="") const override |
| Print information on standard output. | |
| void | Print (Option_t *option="") const override |
| Print information on standard output. | |
| void | RemoveResult (TGo4FitMinuitResult *res) |
| Remove result from results list and delete it. | |
| void | RemoveResult (TGo4FitMinuitResult *res) |
| Remove result from results list and delete it. | |
| Public Member Functions inherited from TGo4FitterAction | |
| TGo4FitterAction () | |
| Default constructor. | |
| TGo4FitterAction () | |
| Default constructor. | |
| TGo4FitterAction (const char *Name, const char *Title, TNamed *Owner=nullptr) | |
| Creates TGo4FitterAction object with given name and title. | |
| TGo4FitterAction (const char *Name, const char *Title, TNamed *Owner=nullptr) | |
| Creates TGo4FitterAction object with given name and title. | |
| virtual | ~TGo4FitterAction () |
| virtual | ~TGo4FitterAction () |
| virtual Bool_t | CanChangeFitter () const |
| virtual Bool_t | CanChangeFitter () const |
| Public Member Functions inherited from TGo4FitNamed | |
| TGo4FitNamed () | |
| Default constructor. | |
| TGo4FitNamed () | |
| Default constructor. | |
| TGo4FitNamed (const char *Name, const char *Title, TNamed *Owner=nullptr) | |
| Creates TGo4FitNamed object and set name and title. | |
| TGo4FitNamed (const char *Name, const char *Title, TNamed *Owner=nullptr) | |
| Creates TGo4FitNamed object and set name and title. | |
| virtual | ~TGo4FitNamed () |
| Destroy TGo4FitNamed object. | |
| virtual | ~TGo4FitNamed () |
| Destroy TGo4FitNamed object. | |
| const char * | GetFullName () |
| Returns full name of object. | |
| const char * | GetFullName () |
| Returns full name of object. | |
| TNamed * | GetOwner () |
| Return owner of object. | |
| TNamed * | GetOwner () |
| Return owner of object. | |
| const char * | GetOwnerFullName () |
| Return full name of owner. | |
| const char * | GetOwnerFullName () |
| Return full name of owner. | |
| void | Print (Option_t *option="") const override |
| void | Print (Option_t *option="") const override |
| void | SetOwner (TNamed *iOwner) |
| Sets owner of object. | |
| void | SetOwner (TNamed *iOwner) |
| Sets owner of object. | |
Protected Attributes | |
| TObjArray | fxCommands |
| List of minuit commands, presented by array of TObjString. | |
| TObjArray | fxResults |
| List of TGo4FitMinuitResult objects. | |
Minuit minimization action.
Now only TGo4FitMinuit class, provided general minimization routine, is available. 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:
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
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:
Definition at line 54 of file TGo4FitMinuit.h.
| TGo4FitMinuit::TGo4FitMinuit | ( | ) |
Default constructor.
Definition at line 50 of file TGo4FitMinuit.cxx.
References TGo4FitterAction::TGo4FitterAction(), fxCommands, and fxResults.
Referenced by Print().
| TGo4FitMinuit::TGo4FitMinuit | ( | const char * | Name | ) |
Create TGo4FitMinuit object (action) with given name.
Definition at line 52 of file TGo4FitMinuit.cxx.
References TGo4FitterAction::TGo4FitterAction(), fxCommands, and fxResults.
|
virtual |
Destroys TGo4FitMinuit object.
Definition at line 59 of file TGo4FitMinuit.cxx.
| TGo4FitMinuit::TGo4FitMinuit | ( | ) |
Default constructor.
| TGo4FitMinuit::TGo4FitMinuit | ( | const char * | Name | ) |
Create TGo4FitMinuit object (action) with given name.
|
virtual |
Destroys TGo4FitMinuit object.
| void TGo4FitMinuit::AddCommand | ( | const char * | iCommand | ) |
Add Minuit command to command list.
To get a full description of possible Minuit commands, see Minuit documentation.
Definition at line 61 of file TGo4FitMinuit.cxx.
References fxCommands.
Referenced by TGo4FitterAbstract::AddSimpleMinuit(), BuildFitter(), TGo4FitPanel::Button_PerformFit(), and QFitMinuitWidget::CommandsEdit_textChanged().
| void TGo4FitMinuit::AddCommand | ( | const char * | iCommand | ) |
Add Minuit command to command list.
To get a full description of possible Minuit commands, see Minuit documentation.
| void TGo4FitMinuit::AddResult | ( | TGo4FitMinuitResult * | res | ) |
Add result object to results list.
Definition at line 156 of file TGo4FitMinuit.cxx.
References fxResults.
| void TGo4FitMinuit::AddResult | ( | TGo4FitMinuitResult * | res | ) |
Add result object to results list.
|
inline |
Clear Minuit commands list.
Definition at line 91 of file TGo4FitMinuit.h.
References fxCommands.
Referenced by QFitMinuitWidget::CommandsEdit_textChanged().
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Execute all Minuit commands.
Implements TGo4FitterAction.
Definition at line 71 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(), TGo4FitterAbstract::NumPars(), TGo4FitParsList::SetParError(), and TGo4FitParsList::SetParValue().
|
overridevirtual |
Execute all Minuit commands.
Implements TGo4FitterAction.
| TGo4FitMinuitResult * TGo4FitMinuit::FindResult | ( | const char * | ResName | ) |
Find result object with provided name.
Definition at line 151 of file TGo4FitMinuit.cxx.
References fxResults.
| TGo4FitMinuitResult * TGo4FitMinuit::FindResult | ( | const char * | ResName | ) |
Find result object with provided name.
| const char * TGo4FitMinuit::GetCommand | ( | Int_t | n | ) | const |
Return command with given index.
Definition at line 66 of file TGo4FitMinuit.cxx.
References fxCommands.
Referenced by QFitMinuitWidget::FillSpecificData().
| const char * TGo4FitMinuit::GetCommand | ( | Int_t | n | ) | const |
Return command with given index.
|
inline |
Returns number of commands in list.
Definition at line 81 of file TGo4FitMinuit.h.
References fxCommands.
Referenced by QFitMinuitWidget::FillSpecificData().
|
inline |
Returns number of commands in list.
Definition at line 81 of file TGo4FitMinuit.h.
References fxCommands.
|
inline |
Returns number of result objects.
Definition at line 96 of file TGo4FitMinuit.h.
References fxResults.
Referenced by TGo4FitPanel::UpdateItem().
|
inline |
Returns number of result objects.
Definition at line 96 of file TGo4FitMinuit.h.
References fxResults.
| TGo4FitMinuitResult * TGo4FitMinuit::GetResult | ( | Int_t | indx | ) | const |
Get TGo4FitMinuitResult object with given index.
Definition at line 146 of file TGo4FitMinuit.cxx.
References fxResults.
Referenced by TGo4FitPanel::UpdateItem().
| TGo4FitMinuitResult * TGo4FitMinuit::GetResult | ( | Int_t | indx | ) | const |
Get TGo4FitMinuitResult object with given index.
|
inlineoverridevirtual |
Reimplemented from TGo4FitterAction.
Definition at line 123 of file TGo4FitMinuit.h.
|
inlineoverridevirtual |
Reimplemented from TGo4FitterAction.
Definition at line 123 of file TGo4FitMinuit.h.
|
override |
Print information on standard output.
Definition at line 167 of file TGo4FitMinuit.cxx.
References fxCommands, fxResults, and TGo4FitNamed::Print().
|
override |
Print information on standard output.
References TGo4FitMinuit(), fxCommands, and fxResults.
| void TGo4FitMinuit::RemoveResult | ( | TGo4FitMinuitResult * | res | ) |
Remove result from results list and delete it.
Definition at line 161 of file TGo4FitMinuit.cxx.
References fxResults.
Referenced by TGo4FitPanel::Cmd_DeleteMinuitResult().
| void TGo4FitMinuit::RemoveResult | ( | TGo4FitMinuitResult * | res | ) |
Remove result from results list and delete it.
|
protected |
List of minuit commands, presented by array of TObjString.
Definition at line 140 of file TGo4FitMinuit.h.
Referenced by TGo4FitMinuit(), TGo4FitMinuit(), AddCommand(), ClearCommands(), DoAction(), GetCommand(), GetNumCommands(), and Print().
|
protected |
List of TGo4FitMinuitResult objects.
Definition at line 145 of file TGo4FitMinuit.h.
Referenced by TGo4FitMinuit(), TGo4FitMinuit(), AddResult(), ClearResults(), DoAction(), FindResult(), GetNumResults(), GetResult(), Print(), and RemoveResult().