--- yoda/techmodel/PhysEndRunReader.cpp 2006/08/16 13:15:23 6.3 +++ yoda/techmodel/PhysEndRunReader.cpp 2006/09/29 10:19:25 6.5 @@ -24,7 +24,7 @@ */ std::string PhysEndRunReader::GetVersionInfo(void) const { return - "$Header: /home/cvsmanager/yoda/techmodel/PhysEndRunReader.cpp,v 6.2 2006/05/30 19:10:03 kusanagi Exp $\n"; + "$Header: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/PhysEndRunReader.cpp,v 6.4 2006/08/23 14:39:44 pam-rm2 Exp $\n"; } /** @@ -50,16 +50,15 @@ //physEndRun->CALO_ENDRUN[]; //physEndRun->TB_ENDRUN; - + memset(subData, 0, length*sizeof(char)); InputFile->read(subData, sizeof(subData)); - subCRC = CM_Compute_CRC16(0, (BYTE*)&subData, dataLength); + subCRC = CM_Compute_CRC16(0, (UINT8*)subData, dataLength); readCRC = (((UINT16)(subData[length - 2]<<8))&0xFF00) + (((UINT16)subData[length - 1])&0x00FF); //if (subCRC != readCRC) throw WrongCRCException(" Wrong CRC for PhysEndRun Packet "); - /* if (subCRC != readCRC) { logger->error(" Wrong CRC for PhysEndRun Packet but I process it anyway"); - }*/ + } //--------------- CALO SECTION------------------------------------ long int offset = 0; int j = 0;