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 namespace SctData { 00011 00018 class SingleVariableTestResult : public TestResult { 00019 public: 00020 SingleVariableTestResult() throw(); 00021 00022 ~SingleVariableTestResult() throw() {} 00023 00027 SingleVariableTestResult(const ConfigurationVariable& scanVariable, const unsigned int runNumber, const string& moduleName) throw() ; 00028 00029 //override 00030 virtual string getClassName() const throw()=0; 00031 00035 virtual void addScan(unsigned int scanNumber, double testPoint = 0) throw (LogicError); 00036 00038 virtual unsigned int getNOptima() const throw() {return m_optima.size();} 00039 00040 virtual void setNOptima(unsigned int n) throw() {m_optima.resize(n);} 00042 virtual void setOptimum(unsigned i, double value) throw (Sct::LogicError); 00044 virtual double getOptimum(unsigned i) const throw(Sct::LogicError); 00045 private: 00046 vector<double> m_optima; 00047 }; 00048 00049 } // end of namespace SctData 00050 00051 #endif //#ifndef SINGLEVARIABLETESTRESULT_H