--- yoda/techmodel/ForcedFECmdReader.cpp	2005/03/04 15:54:11	3.0
+++ yoda/techmodel/ForcedFECmdReader.cpp	2006/09/29 10:19:23	6.1
@@ -1,23 +1,13 @@
+/** @file
+ * $Author: kusanagi $
+ * $Date: 2006/02/07 17:11:09 $
+ * $Revision: 6.0 $
+ * 
+ * Implementation of the ForcedFECmdReader class.
+ */
 
-// Implementation of the ForcedFECmdReader class.
- 
-
-#define UINT unsigned int
-#define BYTE  unsigned char
-#include <string>
-#include <log4cxx/logger.h>
-extern "C" {
-#include <sys/time.h>
-#include "CRC.h"
-}
-
-#include <fstream>
-#include "stdio.h"
 #include "ReaderAlgorithms.h"
 
-#include "event/ForcedFECmdEvent.h"
-
-using namespace pamela;
 using namespace pamela::techmodel;
 
 static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.ForcedFECmdReader"));
@@ -36,7 +26,7 @@
  */
 std::string ForcedFECmdReader::GetVersionInfo(void) const {
   return 
-    "$Trailer: /home/cvsmanager/yoda/techmodel/ForcedFECmdReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $\n";
+    "$Trailer: /home/cvsmanager/yoda/techmodel/ForcedFECmdReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 Maurizio Nagni Exp $\n";
 }
 
 /**
@@ -51,9 +41,14 @@
 
 /**
  * Unpack the ForcedFECmd event from an input file.
+ * The CPU does not add any CRC control at the packet end.
+ * @param EventNumber 
+ * @param dataLength 
  */
-void ForcedFECmdReader::RunEvent(int EventNumber, long int length) throw (WrongCRCException){
-    
-    
+void ForcedFECmdReader::RunEvent(int EventNumber, long int dataLength) throw (WrongCRCException){
+    char      subData[dataLength];
+    memset(subData,  0, dataLength*sizeof(char));
+    InputFile->read(subData, sizeof(subData));
+    forcedFECmd->forcedFECmdData        = new TArrayC(dataLength, subData);
 }