--- yoda/techmodel/S4InitReader.cpp 2005/05/28 10:44:11 4.4 +++ yoda/techmodel/S4InitReader.cpp 2006/09/29 10:19:26 6.3 @@ -1,21 +1,7 @@ // Implementation of the S4InitReader class. - -#define UINT unsigned int -#define BYTE unsigned char -#include -#include -extern "C" { - #include "CRC.h" -} - -#include -#include "stdio.h" #include "ReaderAlgorithms.h" - - -using namespace pamela; using namespace pamela::techmodel; static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.S4InitReader")); @@ -34,7 +20,7 @@ */ std::string S4InitReader::GetVersionInfo(void) const { return - "$Trailer: /home/cvsmanager/yoda/techmodel/S4InitReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $\n"; + "$Trailer: /home/cvsmanager/yoda/techmodel/S4InitReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 Maurizio Nagni Exp $\n"; } /** @@ -50,7 +36,10 @@ /** * Unpack the S4Init event from an input file. */ -void S4InitReader::RunEvent(int EventNumber, long int length) throw (WrongCRCException){ - +void S4InitReader::RunEvent(int EventNumber, long int dataLength) throw (WrongCRCException){ + char subData[dataLength]; + memset(subData, 0, dataLength*sizeof(char)); + InputFile->read(subData, sizeof(subData)); + s4Init->s4InitData = new TArrayC(dataLength, subData); }