| 1 |
/** @file |
/** @file |
| 2 |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/McmdReader.cpp,v $ |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/McmdReader.cpp,v $ |
| 3 |
* $Id: McmdReader.cpp,v 1.3 2009/04/15 08:40:06 pam-fi Exp $ |
* $Id: McmdReader.cpp,v 1.4 2009/09/30 12:21:38 mocchiut Exp $ |
| 4 |
* $Author: pam-fi $ |
* $Author: mocchiut $ |
| 5 |
* |
* |
| 6 |
* Implementation of the McmdReader class. |
* Implementation of the McmdReader class. |
| 7 |
*/ |
*/ |
| 24 |
* Get a string with the version info of the algorithm. |
* Get a string with the version info of the algorithm. |
| 25 |
*/ |
*/ |
| 26 |
std::string McmdReader::GetVersionInfo(void) const { |
std::string McmdReader::GetVersionInfo(void) const { |
| 27 |
return "$Header: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/McmdReader.cpp,v 1.3 2009/04/15 08:40:06 pam-fi Exp $\n"; |
return "$Header: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/McmdReader.cpp,v 1.4 2009/09/30 12:21:38 mocchiut Exp $\n"; |
| 28 |
} |
} |
| 29 |
|
|
| 30 |
/** |
/** |
| 95 |
while (start < (length - 2 - obt_len - subTrailer_len - subTrailer_len - subPckCRC_len)) |
while (start < (length - 2 - obt_len - subTrailer_len - subTrailer_len - subPckCRC_len)) |
| 96 |
// while(start < (length-2)) |
// while(start < (length-2)) |
| 97 |
{ |
{ |
| 98 |
// printf(" 1data %X \n",(UINT8)mysubData[start]); |
// printf(" 1data %X \n",(UINT8)mysubData[start]); |
| 99 |
//Read the OBT preceeding the subpacket then calculate a partial CRC for it |
//Read the OBT preceeding the subpacket then calculate a partial CRC for it |
| 100 |
//and update the partialCRC |
//and update the partialCRC |
| 101 |
for (int m = start; m < start + obt_len; m++) { |
for (int m = start; m < start + obt_len; m++) { |