00001 #ifndef SINGLEVARIABLETESTRESULT_H 00002 #define SINGLEVARIABLETESTRESULT_H 00003 00004 #include "FitObject.h" 00005 #include "TestResult.h" 00006 00007 class TF1; 00008 class TGraph; 00009 00010 using namespace std; 00011 00012 namespace SctData { 00013 00020 class SingleVariableTestResult : public TestResult { 00021 public: 00022 SingleVariableTestResult() throw(); 00023 00024 ~SingleVariableTestResult() throw() {} 00025 00029 SingleVariableTestResult(const ConfigurationVariable& scanVariable, const unsigned int runNumber, const string& moduleName) throw() ; 00030 00031 //override 00032 virtual string getClassName() const throw()=0; 00033 00037 virtual void addScan(unsigned int scanNumber, double testPoint = 0) throw (LogicError); 00038 00040 virtual unsigned int getNOptima() const throw() {return m_optima.size();} 00041 00042 virtual void setNOptima(unsigned int n) throw() {m_optima.resize(n);} 00044 virtual void setOptimum(unsigned i, double value) throw (Sct::LogicError); 00046 virtual double getOptimum(unsigned i) const throw(Sct::LogicError); 00047 private: 00048 vector<double> m_optima; 00049 }; 00050 00051 } // end of namespace SctData 00052 00053 #endif //#ifndef SINGLEVARIABLETESTRESULT_H