Main Page   Modules   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages  

MinuitFitStrategy.cpp

Go to the documentation of this file.
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     const string& MinuitFitStrategy::getName() const throw() {
00038     return name;
00039     }
00040     
00041     bool MinuitFitStrategy::inMap=FitStrategyFactory::instance().addToMap("MinuitFitStrategy", *new MinuitFitStrategy("") );
00042 
00043 }  // end of namespace SctFitter;

Generated on Mon Dec 15 19:36:06 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3