00001 //------------------------------------------------------------- 00002 // Go4 Release Package v3.04-01 (build 30401) 00003 // 28-November-2008 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at EE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 #ifndef TGO4FITMINUIT_H 00017 #define TGO4FITMINUIT_H 00018 00019 #include "TGo4FitterAction.h" 00020 00021 #include "TObjArray.h" 00022 00023 class TGo4FitMinuitResult; 00024 00051 class TGo4FitMinuit : public TGo4FitterAction { 00052 public: 00053 00057 TGo4FitMinuit(); 00058 00062 TGo4FitMinuit(const char* Name); 00063 00067 virtual ~TGo4FitMinuit(); 00068 00073 void AddCommand(const char* iCommand); 00074 00078 Int_t GetNumCommands() { return fxCommands.GetLast()+1; } 00079 00083 const char* GetCommand(Int_t n); 00084 00088 void ClearCommands() { fxCommands.Clear(); } 00089 00093 Int_t GetNumResults() { return fxResults.GetLast()+1; } 00094 00098 TGo4FitMinuitResult* GetResult(Int_t indx); 00099 00103 TGo4FitMinuitResult* FindResult(const char* ResName); 00104 00108 void AddResult(TGo4FitMinuitResult* res); 00109 00113 void RemoveResult(TGo4FitMinuitResult* res); 00114 00118 void ClearResults() { fxResults.Clear(); } 00119 00120 virtual Bool_t NeedBuffers() const { return kTRUE; } 00121 00125 virtual void DoAction(TGo4FitterAbstract* Fitter); 00126 00130 virtual void Print(Option_t* option) const; 00131 00132 protected: 00133 00137 TObjArray fxCommands; 00138 00142 TObjArray fxResults; 00143 00144 private: 00145 00149 /*# TGo4FitMinuitResult ResultArray; */ 00150 00151 ClassDef(TGo4FitMinuit,1) 00152 }; 00153 00154 #endif // TGO4FITMINUIT_H 00155 00156 //----------------------------END OF GO4 SOURCE FILE ---------------------