GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4FitMinuit.h
Go to the documentation of this file.
1// $Id$
2//-----------------------------------------------------------------------
3// The GSI Online Offline Object Oriented (Go4) Project
4// Experiment Data Processing at EE department, GSI
5//-----------------------------------------------------------------------
6// Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7// Planckstr. 1, 64291 Darmstadt, Germany
8// Contact: http://go4.gsi.de
9//-----------------------------------------------------------------------
10// This software can be used under the license agreements as stated
11// in Go4License.txt file which is part of the distribution.
12//-----------------------------------------------------------------------
13
14#ifndef TGO4FITMINUIT_H
15#define TGO4FITMINUIT_H
16
17#include "TGo4FitterAction.h"
18
19#include "TObjArray.h"
20
22
55 public:
56
61
65 TGo4FitMinuit(const char *Name);
66
70 virtual ~TGo4FitMinuit();
71
76 void AddCommand(const char *iCommand);
77
81 Int_t GetNumCommands() const { return fxCommands.GetLast()+1; }
82
86 const char *GetCommand(Int_t n) const;
87
91 void ClearCommands() { fxCommands.Clear(); }
92
96 Int_t GetNumResults() const { return fxResults.GetLast()+1; }
97
101 TGo4FitMinuitResult* GetResult(Int_t indx) const;
102
106 TGo4FitMinuitResult* FindResult(const char *ResName);
107
112
117
121 void ClearResults() { fxResults.Clear(); }
122
123 Bool_t NeedBuffers() const override { return kTRUE; }
124
128 void DoAction(TGo4FitterAbstract *Fitter) override;
129
133 void Print(Option_t *option = "") const override;
134
135 protected:
136
140 TObjArray fxCommands;
141
145 TObjArray fxResults;
146
147 ClassDefOverride(TGo4FitMinuit,1)
148};
149
150#endif // TGO4FITMINUIT_H
Result values, taken from Minuit object.
TObjArray fxResults
List of TGo4FitMinuitResult objects.
void AddResult(TGo4FitMinuitResult *res)
Add result object to results list.
Int_t GetNumResults() const
Returns number of result objects.
TGo4FitMinuitResult * FindResult(const char *ResName)
Find result object with provided name.
void Print(Option_t *option="") const override
Print information on standard output.
TGo4FitMinuitResult * GetResult(Int_t indx) const
Get TGo4FitMinuitResult object with given index.
TGo4FitMinuit()
Default constructor.
TObjArray fxCommands
List of minuit commands, presented by array of TObjString.
const char * GetCommand(Int_t n) const
Return command with given index.
Bool_t NeedBuffers() const override
void RemoveResult(TGo4FitMinuitResult *res)
Remove result from results list and delete it.
void ClearCommands()
Clear Minuit commands list.
void AddCommand(const char *iCommand)
Add Minuit command to command list.
Int_t GetNumCommands() const
Returns number of commands in list.
void ClearResults()
Delete all results objects.
virtual ~TGo4FitMinuit()
Destroys TGo4FitMinuit object.
void DoAction(TGo4FitterAbstract *Fitter) override
Execute all Minuit commands.
Abstract fitter class.
TGo4FitterAction()
Default constructor.