#ifndef DARK_SIGNAL_PARAMETER_1_04_2007 #define DARK_SIGNAL_PARAMETER_1_04_2007 /** @file DarkSigParam.h @author Brian Magill @date 1/04/2006 $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 the parameters used in the dark signal corrections */ #include class DarkSigParam { typedef std::vector arrayD; typedef std::vector arrayInt; private: int gasID; arrayD offset; arrayD timeRef; arrayD sigma; arrayInt quality; bool calcDone; public: DarkSigParam( ):gasID(0), offset(0), timeRef(0), sigma(0), quality(0), calcDone(false) { }; DarkSigParam(int id , arrayD x, arrayD t, arrayD m_sigma, arrayInt q,bool calc): gasID(id), offset(x), timeRef(t), sigma(m_sigma), quality(q), calcDone(calc) { }; DarkSigParam(DarkSigParam const &rhs): gasID(rhs.gasID), offset(rhs.offset), timeRef(rhs.timeRef), sigma(rhs.sigma), quality(rhs.quality),calcDone(rhs.calcDone) { }; DarkSigParam const & operator = (DarkSigParam const &rhs) { if (this == &rhs) return *this; gasID = rhs.gasID; offset = rhs.offset; timeRef = rhs.timeRef; sigma = rhs.sigma; quality = rhs.quality; calcDone = rhs.calcDone; return *this; }; ~DarkSigParam() { }; double getID() const { return gasID;}; double getOffset(int indx) const {return offset.at(indx); }; double getTimeRef(int indx) const {return timeRef.at(indx); }; double getSigma(int indx) const {return sigma.at(indx); }; int getQuality(int indx) const {return quality.at(indx); }; unsigned long size() const {return offset.size(); }; bool hasData() const { return calcDone; }; }; #endif