00001 #ifndef STROBEDELAYTESTRESULT_H 00002 #define STROBEDELAYTESTRESULT_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 StrobeDelayTestResult : public TestResult { 00021 public: 00022 StrobeDelayTestResult() throw(); 00023 00024 ~StrobeDelayTestResult() throw() {} 00025 00029 StrobeDelayTestResult(const unsigned int runNumber, const string& moduleName) throw() ; 00030 00031 //override 00032 virtual string getClassName() const throw() ; 00033 00037 virtual void addScan(unsigned int scanNumber, double testPoint = 0) throw (LogicError); 00038 00042 void setFraction(const double f=0.25) throw() {m_fraction=f;} 00043 00047 double getFraction() const throw() {return m_fraction;} 00048 00050 unsigned int getNOptima() const throw() {return m_optima.size();} 00051 00052 void setNOptima(unsigned int n) throw() {m_optima.resize(n);} 00053 00055 double getOptimum(unsigned i) const throw(Sct::LogicError); 00056 00062 void setOptimum(unsigned int chip, double optimum) throw(Sct::LogicError); 00063 00064 private: 00065 double m_fraction; 00066 vector<double> m_optima; 00067 }; 00068 00069 } // end of namespace SctData 00070 00071 #endif //#ifndef STROBEDELAYTESTRESULT_H