/** @file TransferMisc.cpp @author Brian Magill @date 3/21/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 A catch all routine for transfering data to the Level 1 ouput Ideally all of the functions and classes used in this module will eventually find a happy home somewhere else. */ #include #include "TransferMisc.h" #include "TranslateFilterTemp.h" using namespace std; void TransferMisc(Event& L0, Event& L1) { EventVarVect eventVect; vector transArray(16); // Map the filter holder to their corresponding filter // Note that in C++ these indices are 0 based instead of 1 based as // they are in the documentation transArray[0] = 0; transArray[1] = 7; transArray[2] = 0; transArray[3] = 7; transArray[4] = 6; transArray[5] = 1; transArray[6] = 6; transArray[7] = 1; transArray[8] = 2; transArray[9] = 4; transArray[10] = 2; transArray[11] = 4; transArray[12] = 5; transArray[13] = 3; transArray[14] = 5; transArray[15] = 3; //"L0_FilterHolderTemps" L0.getEventVar("L0_FilterTemperatures", eventVect); TranslateFilterTemp transTemp(eventVect, transArray); EventVar FilTemVar = transTemp("L1_FilterTemperatures"); L1.addEventVar(FilTemVar); }