--- yoda/techmodel/CalibCalPulse1Reader.cpp 2006/02/07 17:11:09 6.0 +++ yoda/techmodel/CalibCalPulse1Reader.cpp 2006/09/29 10:19:19 6.3 @@ -2,10 +2,6 @@ // Implementation of the CalibCalPulse1Reader class. -#define UINT unsigned int -#define BYTE unsigned char -#include -#include extern "C" { #include "CRC.h" //Struct per il passaggio di dati da e verso la chiamata fortran @@ -20,13 +16,8 @@ void calpulse_(char*, long int*, int*); } -#include -#include "stdio.h" #include "ReaderAlgorithms.h" -#include "event/CalibCalPulse1Event.h" - -using namespace pamela; using namespace pamela::techmodel; static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.CalibCalPulse1Reader")); @@ -45,7 +36,7 @@ */ std::string CalibCalPulse1Reader::GetVersionInfo(void) const { return - "$Header: /home/cvsmanager/yoda/techmodel/CalibCalPulse1Reader.cpp,v 5.1 2006/02/04 12:37:44 kusanagi Exp $\n"; + "$Header: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/CalibCalPulse1Reader.cpp,v 6.2 2006/05/30 19:10:03 kusanagi Exp $\n"; } /** @@ -65,6 +56,7 @@ std::stringstream oss; char packetData[dataLength]; int ERROR; + memset(packetData, 0, dataLength*sizeof(char)); InputFile->read(packetData, sizeof(packetData)); calpulse_(packetData, &dataLength, &ERROR);