#ifndef DRIFT_CORRECTION_PARAMETERS_1_01_2007 #define DRIFT_CORRECTION_PARAMETERS_1_01_2007 /** @file DriftParam.h @author Brian Magill @date 1/03/2007 $Date:$ $Revision:$ @copyright (©) Copyright 2006 by GATS Inc. 11864 Canon Blvd., Suite 101, Newport News, VA 23606 All Rights Reserved. No part of this software or publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise without the prior written permission of GATS Inc. @brief Contains drift correction parameters */ #include class DriftParam { typedef std::vector arrayD; typedef std::vector arrayInt; private: int gasID; arrayD slope; arrayD sigma; arrayD sig_ref; arrayInt quality; double t_ref; double interval; bool calcDone; public: DriftParam( ):gasID(0), slope(0), sigma(0), sig_ref(0), quality(0), t_ref(0), interval(0), calcDone(false) { } DriftParam(int id , arrayD m, arrayD m_sigma, arrayD v, arrayInt q, double t, double t_inv): gasID(id), slope(m), sigma(m_sigma), sig_ref(v), quality(q), t_ref(t), interval(t_inv), calcDone(true) { } DriftParam(DriftParam const &rhs): gasID(rhs.gasID), slope(rhs.slope), sigma(rhs.sigma), sig_ref(rhs.sig_ref), quality(rhs.quality), t_ref(rhs.t_ref), interval(rhs.interval), calcDone(rhs.calcDone) { } DriftParam const & operator = (DriftParam const &rhs) { if (this == &rhs) return *this; gasID = rhs.gasID; slope = rhs.slope; sigma = rhs.sigma; sig_ref = rhs.sig_ref; quality = rhs.quality; t_ref = rhs.t_ref; interval = rhs.interval; calcDone = rhs.calcDone; return *this; } ~DriftParam() { } double getID() const { return gasID;} double getSlope(int indx) const {return slope.at(indx); } double getSigma(int indx) const {return sigma.at(indx); } double getSigRef(int indx)const {return sig_ref.at(indx); } int getQuality(int indx) const {return quality.at(indx); } double getTimeRef() const {return t_ref ; } double getTimeInterval() const {return interval; } unsigned long size() const {return slope.size(); } bool hasData() const { return calcDone; } }; #endif