00001 // $Id: TGo4FitMinuit.h 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef TGO4FITMINUIT_H 00015 #define TGO4FITMINUIT_H 00016 00017 #include "TGo4FitterAction.h" 00018 00019 #include "TObjArray.h" 00020 00021 class TGo4FitMinuitResult; 00022 00049 class TGo4FitMinuit : public TGo4FitterAction { 00050 public: 00051 00055 TGo4FitMinuit(); 00056 00060 TGo4FitMinuit(const char* Name); 00061 00065 virtual ~TGo4FitMinuit(); 00066 00071 void AddCommand(const char* iCommand); 00072 00076 Int_t GetNumCommands() { return fxCommands.GetLast()+1; } 00077 00081 const char* GetCommand(Int_t n); 00082 00086 void ClearCommands() { fxCommands.Clear(); } 00087 00091 Int_t GetNumResults() { return fxResults.GetLast()+1; } 00092 00096 TGo4FitMinuitResult* GetResult(Int_t indx); 00097 00101 TGo4FitMinuitResult* FindResult(const char* ResName); 00102 00106 void AddResult(TGo4FitMinuitResult* res); 00107 00111 void RemoveResult(TGo4FitMinuitResult* res); 00112 00116 void ClearResults() { fxResults.Clear(); } 00117 00118 virtual Bool_t NeedBuffers() const { return kTRUE; } 00119 00123 virtual void DoAction(TGo4FitterAbstract* Fitter); 00124 00128 virtual void Print(Option_t* option) const; 00129 00130 protected: 00131 00135 TObjArray fxCommands; 00136 00140 TObjArray fxResults; 00141 00142 private: 00143 00147 /*# TGo4FitMinuitResult ResultArray; */ 00148 00149 ClassDef(TGo4FitMinuit,1) 00150 }; 00151 00152 #endif // TGO4FITMINUIT_H