/** @file ExtractVector.cpp @author Brian Magill @creation date 9/19/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 For extracting STL vectors for a given instant from an EventVarVec */ #include "ExtractVector.h" using namespace std; ExtractVector::ExtractVector(const EventVarVect &in) { varVect = in; }; vector ExtractVector::operator() (unsigned long indx) const { EventVar workVar(varVect[0].size() ); vector outputV; for(unsigned long ichan = 0; ichan < varVect.size(); ichan++) { workVar = varVect[ichan]; outputV.push_back(workVar[indx]); } return outputV; };