| 1 |
/** @file |
/** @file |
| 2 |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/ArrDumpReader.cpp,v $ |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/ArrDumpReader.cpp,v $ |
| 3 |
* $Id: ArrDumpReader.cpp,v 1.1.1.1 2008/09/23 07:20:26 mocchiut Exp $ |
* $Id: ArrDumpReader.cpp,v 1.2 2009-07-24 13:53:43 mocchiut Exp $ |
| 4 |
* $Author: mocchiut $ |
* $Author: mocchiut $ |
| 5 |
* |
* |
| 6 |
* Implementation of the ArrDumpReader class. |
* Implementation of the ArrDumpReader class. |
| 25 |
* Get a string with the version info of the algorithm. |
* Get a string with the version info of the algorithm. |
| 26 |
*/ |
*/ |
| 27 |
std::string ArrDumpReader::GetVersionInfo(void) const { |
std::string ArrDumpReader::GetVersionInfo(void) const { |
| 28 |
return "$Header: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/ArrDumpReader.cpp,v 1.1.1.1 2008/09/23 07:20:26 mocchiut Exp $\n"; |
return "$Header: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/ArrDumpReader.cpp,v 1.2 2009-07-24 13:53:43 mocchiut Exp $\n"; |
| 29 |
} |
} |
| 30 |
|
|
| 31 |
/** |
/** |
| 69 |
while (offset < dataLength){ |
while (offset < dataLength){ |
| 70 |
rec = new(recs[i++]) ArrDumpRecord(); //add a new TmtcRecord |
rec = new(recs[i++]) ArrDumpRecord(); //add a new TmtcRecord |
| 71 |
rec->Arr_ID = ((UINT8)subData[offset])&0xFF; |
rec->Arr_ID = ((UINT8)subData[offset])&0xFF; |
| 72 |
rec->Arr_len = (((UINT16)subData[offset+1]<<8)&0xFF00) + ((UINT16)subData[offset+2])&0x00FF; |
rec->Arr_len = (((UINT16)subData[offset+1]<<8)&0xFF00) + (((UINT16)subData[offset+2])&0x00FF); |
| 73 |
rec->Data = new TArrayI((int)rec->Arr_len, (int*)(subData+offset+3)); |
rec->Data = new TArrayI((int)rec->Arr_len, (int*)(subData+offset+3)); |
| 74 |
offset = offset + sizeof(UINT32)*(rec->Arr_len) + 3; |
offset = offset + sizeof(UINT32)*(rec->Arr_len) + 3; |
| 75 |
} |
} |