MinuitFitStrategy.cpp

00001 #include "MinuitFitStrategy.h"
00002 #include "Sct/UnsupportedOperationError.h"
00003 #include <TH1.h>
00004 #include <TGraphErrors.h>
00005 
00006 using namespace Sct;
00007 namespace SctFitter{
00008    MinuitFitStrategy::MinuitFitStrategy(string opt) throw()
00009     : FitStrategy(opt), name("MinuitFitStrategy") {}
00010     
00011     MinuitFitStrategy::~MinuitFitStrategy() throw() {}
00012 
00013     void MinuitFitStrategy::fitTH1(const TH1& hist, TF1& fit) const throw(LogicError, MathsError) {
00015     TH1& theHist = const_cast<TH1&> (hist);
00016     
00018     throw UnsupportedOperationError("MinuitFitStrategy not yet implimented!", __FILE__, __LINE__);
00019     }
00020 
00021     void MinuitFitStrategy::fitTGraph(const TGraph& graph, TF1& fit) const throw(LogicError, MathsError) {
00023     TGraph& theGraph = const_cast<TGraph&> (graph);
00024     
00026     throw UnsupportedOperationError("MinuitFitStrategy not yet implimented!", __FILE__, __LINE__);
00027     }
00028 
00029     void MinuitFitStrategy::fitTGraphErrors(const TGraphErrors& graph, TF1& fit) const throw(LogicError, MathsError) {
00031     TGraphErrors& theGraph = const_cast<TGraphErrors&> (graph);
00032     
00034     throw UnsupportedOperationError("MinuitFitStrategy not yet implimented!", __FILE__, __LINE__);
00035     }
00036 
00037 
00038     void MinuitFitStrategy::fitTGraphAsymmErrors(const TGraphAsymmErrors& graph, TF1& fit) const throw(LogicError, MathsError) {
00040     TGraphAsymmErrors& theGraph = const_cast<TGraphAsymmErrors&> (graph);
00041     
00043     throw UnsupportedOperationError("MinuitFitStrategy not yet implimented!", __FILE__, __LINE__);
00044     }
00045 
00046     const string& MinuitFitStrategy::getName() const throw() {
00047     return name;
00048     }
00049     
00050     bool MinuitFitStrategy::inMap=FitStrategyFactory::instance().addToMap("MinuitFitStrategy", *new MinuitFitStrategy("") );
00051 
00052 }  // end of namespace SctFitter;

Generated on Mon Feb 6 14:01:23 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6