--- yoda/techmodel/CalibTrk1Reader.cpp 2006/02/04 12:37:44 5.1 +++ yoda/techmodel/CalibTrk1Reader.cpp 2006/09/29 10:19:21 6.3 @@ -1,23 +1,14 @@ /** @file - * $Source: /home/cvsmanager/yoda/techmodel/CalibTrk1Reader.cpp,v $ - * $Id: CalibTrk1Reader.cpp,v 5.0 2005/08/29 09:46:13 Maurizio Nagni Exp $ - * $Author: Maurizio Nagni $ + * $Source: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/CalibTrk1Reader.cpp,v $ + * $Id: CalibTrk1Reader.cpp,v 6.2 2006/05/30 19:10:03 kusanagi Exp $ + * $Author: kusanagi $ * * Implementation of the LogReader class. * ToBeDone: * Control the CRC for the entire data Packet not just for single records */ -#define UINT unsigned int -#define BYTE unsigned char -#include -#include -#include -#include "stdio.h" #include "ReaderAlgorithms.h" -#include "event/PamelaRun.h" - -#include "event/CalibTrk1Event.h" extern "C" { #include "CRC.h" @@ -49,7 +40,6 @@ #include } -using namespace pamela; using namespace pamela::techmodel; static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.CalibTrk1Reader")); @@ -68,7 +58,7 @@ */ std::string CalibTrk1Reader::GetVersionInfo(void) const { return - "$Header: /home/cvsmanager/yoda/techmodel/CalibTrk1Reader.cpp,v 5.0 2005/08/29 09:46:13 Maurizio Nagni Exp $\n"; + "$Header: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/CalibTrk1Reader.cpp,v 6.2 2006/05/30 19:10:03 kusanagi Exp $\n"; } /** @@ -89,6 +79,7 @@ std::stringstream oss; char subData[dataLength]; int ERROR; + memset(subData, 0, dataLength*sizeof(char)); InputFile->read(subData, sizeof(unsigned char)*dataLength); char *data = new char[dataLength];