1 |
/** @file |
/** @file |
2 |
* $Source: /repository/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.4 2008-03-04 18:09:30 messineo Exp $ |
* $Id: ArrDumpReader.cpp,v 1.1.1.1 2008/09/23 07:20:26 mocchiut Exp $ |
4 |
* $Author: messineo $ |
* $Author: mocchiut $ |
5 |
* |
* |
6 |
* Implementation of the ArrDumpReader class. |
* Implementation of the ArrDumpReader class. |
7 |
*/ |
*/ |
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: /repository/PamOffLineSW/techmodel/ArrDumpReader.cpp,v 1.4 2008-03-04 18:09:30 messineo Exp $\n"; |
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"; |
29 |
} |
} |
30 |
|
|
31 |
/** |
/** |
66 |
int i = 0; |
int i = 0; |
67 |
ArrDump->Records->Clear(); |
ArrDump->Records->Clear(); |
68 |
TClonesArray &recs = *(ArrDump->Records); |
TClonesArray &recs = *(ArrDump->Records); |
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 |
} |
} |
76 |
|
|
77 |
|
|
78 |
/* |
/* |
79 |
if (subCRC != readCRC) |
if (subCRC != readCRC) |
80 |
{ |
{ |