--- yoda/techmodel/TrkAlarmReader.cpp 2005/08/29 09:46:13 5.0 +++ yoda/techmodel/TrkAlarmReader.cpp 2006/09/29 10:19:29 6.3 @@ -1,20 +1,7 @@ // Implementation of the TrkAlarmReader 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.TrkAlarmReader")); @@ -33,7 +20,7 @@ */ std::string TrkAlarmReader::GetVersionInfo(void) const { return - "$Trailer: /home/cvsmanager/yoda/techmodel/TrkAlarmReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $\n"; + "$Trailer: /home/cvsmanager/yoda/techmodel/TrkAlarmReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 Maurizio Nagni Exp $\n"; } /** @@ -52,6 +39,7 @@ void TrkAlarmReader::RunEvent(int EventNumber, long int length) throw (WrongCRCException){ char subData[length]; + memset(subData, 0, length*sizeof(char)); InputFile->read(subData, sizeof(subData)); trkAlarm->TrigMask = (subData[0]&0xc0) >> 6;