#ifndef FIX_DIFFERENCE_SIGNALS_SIGN_05_02_07 #define FIX_DIFFERENCE_SIGNALS_SIGN_05_02_07 /** @file FixDiffSign.h @author Brian Magill @datecreated 05/02/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: Changes the sign of the H2O and NO difference signal The sign of these difference signals is changed so taht it is the same as the other differenece signals. */ //---------------------------------------------------------------------- // #include #include #include "SOFIE_namespace.h" class FixDiffSign { public: FixDiffSign(){ }; ~FixDiffSign() { }; /// /// @param signals - array of signals /// /// @brief Corrects signals for time shifts due to electronic filtering and MUXing /// void operator()(std::vector > &signals) const { for(unsigned long i = SOFIE::O3_strong; i <= SOFIE::NO_diff; i++) { if (i == SOFIE::H2O_diff || i == SOFIE::NO_diff) signals[i] = -1.0*signals[i]; } }; }; #endif