00001 #ifndef MINUITFITSTRATEGY_H 00002 #define MINUITFITSTRATEGY_H 00003 #include "FitStrategy.h" 00004 00005 using namespace Sct; 00006 namespace SctFitter{ 00014 class MinuitFitStrategy : public FitStrategy { 00015 public: 00017 MinuitFitStrategy(string opt=string("")) throw(); 00019 ~MinuitFitStrategy() throw(); 00021 virtual void fitTH1(const TH1& hist, TF1& fit) const throw(LogicError, MathsError); 00022 00024 virtual void fitTGraph(const TGraph& graph, TF1& fit) const throw(LogicError, MathsError); 00025 00027 virtual void fitTGraphErrors(const TGraphErrors& graph, TF1& fit) const throw(LogicError, MathsError); 00028 00030 virtual void fitTGraphAsymmErrors(const TGraphAsymmErrors& graph, TF1& fit) const throw(LogicError, MathsError); 00031 00033 virtual const string& getName() const throw(); 00034 private: 00035 MinuitFitStrategy( const MinuitFitStrategy& ); 00036 const string name; 00037 static bool inMap; 00038 }; 00039 00040 } // end of namespace SctFitter; 00041 #endif // #ifndef MINUITFITSTRATEGY_H