#ifndef DETERMINE_DRIFT_CORRECTION_08_08_2006 #define DETERMINE_DRIFT_CORRECTION_08_08_2006 /** @class DetermDriftCorr.h @author Brian Magill @creationdate 8/8/2006 @brief Determines how much signal correction to apply */ #include "DetermDriftAbstract.h" #include class DetermDriftCorr: public DetermDriftAbstract { private: bool hasData; double slope; double slopeError; double tref; double Vref; public: DetermDriftCorr():hasData(false), slope(0), slopeError(0), tref(0), Vref(0) { }; DetermDriftCorr(std::valarray const &time, std::valarray const &signal); ~DetermDriftCorr() { }; DetermDriftCorr(DetermDriftCorr const& rhs):hasData(rhs.hasData), slope(rhs.slope), slopeError(rhs.slopeError), tref(rhs.tref), Vref(rhs.Vref) { }; DetermDriftCorr const& operator = (DetermDriftCorr const& rhs) { if (this == &rhs) return *this; hasData = rhs.hasData; slope = rhs.slope; slopeError = rhs.slopeError; tref = rhs.tref; Vref = rhs.Vref; return *this; }; bool containsData() const {return hasData; }; double getSlope() const {return slope;} ; double getSlopeError() const {return slopeError;}; double getTimeRef() const {return tref;}; double getVref() const {return Vref;}; }; #endif