CurationTaskID.hxx

Go to the documentation of this file.
00001 
00002 
00003 
00004 //-----------------------------------------------------------------------------
00005 // CVS: $Revision: 4785 $, $Date: 2008-05-20 14:19:36 +0100 (Tue, 20 May 2008) $, $Author: RossCollins $
00006 //-----------------------------------------------------------------------------
00007 #ifndef CURATIONTASK_H
00008 #define CURATIONTASK_H
00009 
00010 #include <string>
00011 
00012 #include "DataMethod.hxx"
00013 #include "Options.h"
00014 //-----------------------------------------------------------------------------
00016 template<typename DataType>
00017 class CurationTaskID : public DataMethod<DataType>
00018 {
00019 public:
00021   CurationTaskID()
00022   {
00023     DataMethod<DataType>::methodName = "CurationTaskID";
00024     Options options;
00025     mCuEventID = options.getCurationEvent();
00026   }
00027 
00029   virtual ~CurationTaskID() { }
00030 
00032   void setSource(IntMap& tbls, IntMap& cols, StringMap units) { }
00033 
00035   void setTarget(IntMap& cols, StringMap units)
00036   {
00037     colNo = cols[0];
00038   }
00039 
00041   void doit(TableData<DataType>& data, int row1, int row2)
00042   {
00043     for (int rowNo = row1; rowNo < row2; ++rowNo)
00044     {
00045       data.assign(colNo, rowNo, mCuEventID);
00046     }
00047   }
00048   // No data from raw data included
00049   void doit2(TableData<DataType>& rawData, TableData<DataType>& data, int row1, int row2) { }
00050 
00051 private:
00052   int colNo;
00053   std::string mCuEventID;
00054 };
00055 //-----------------------------------------------------------------------------
00056 #endif
00057 //-----------------------------------------------------------------------------
00058 // Change log:
00059 //
00060 // 27-May-2004,  IAB: Original version.
00061 //  7-Apr-2008, ETWS: Upgraded to use new detection table layout.
Generated on Mon Oct 4 10:38:34 2010 for WfcamSrc by  doxygen 1.6.3