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 const string& getName() const throw();
00031 private:
00032 MinuitFitStrategy( const MinuitFitStrategy& );
00033 const string name;
00034 static bool inMap;
00035 };
00036
00037 }
00038 #endif // #ifndef MINUITFITSTRATEGY_H