1 |
/** @file |
/** @file |
2 |
* $Source: /repository/PamOffLineSW/techmodel/TabDumpReader.cpp,v $ |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/TabDumpReader.cpp,v $ |
3 |
* $Id: TabDumpReader.cpp,v 1.4 2008-03-04 18:09:30 messineo Exp $ |
* $Id: TabDumpReader.cpp,v 1.1.1.1 2008/09/23 07:20:27 mocchiut Exp $ |
4 |
* $Author: messineo $ |
* $Author: mocchiut $ |
5 |
* |
* |
6 |
* Implementation of the TabDumpReader class. |
* Implementation of the TabDumpReader 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 TabDumpReader::GetVersionInfo(void) const { |
std::string TabDumpReader::GetVersionInfo(void) const { |
27 |
return "$Header: /repository/PamOffLineSW/techmodel/TabDumpReader.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/TabDumpReader.cpp,v 1.1.1.1 2008/09/23 07:20:27 mocchiut Exp $\n"; |
28 |
} |
} |
29 |
|
|
30 |
/** |
/** |
63 |
int i = 0; |
int i = 0; |
64 |
TabDump->Records->Clear(); |
TabDump->Records->Clear(); |
65 |
TClonesArray &recs = *(TabDump->Records); |
TClonesArray &recs = *(TabDump->Records); |
66 |
while (offset < dataLength){ |
while (offset < dataLength){ |
67 |
rec = new(recs[i++]) TabDumpRecord(); //add a new TabDump |
rec = new(recs[i++]) TabDumpRecord(); //add a new TabDump |
68 |
rec->Tab_ID = ((UINT8)subData[offset])&0xFF; |
rec->Tab_ID = ((UINT8)subData[offset])&0xFF; |
69 |
rec->Nrow = ((UINT8)subData[offset+1])&0xFF; |
rec->Nrow = ((UINT8)subData[offset+1])&0xFF; |
70 |
rec->Ncol = ((UINT8)subData[offset+2])&0xFF; |
rec->Ncol = ((UINT8)subData[offset+2])&0xFF; |
71 |
rec->Data = new TArrayI((int)((rec->Nrow)*(rec->Ncol)), (int*)(subData+offset+3)); |
rec->Data = new TArrayI((int)((rec->Nrow)*(rec->Ncol)), (int*)(subData+offset+3)); |
72 |
offset = offset + sizeof(UINT32)*(rec->Nrow)*(rec->Ncol) + 3; |
offset = offset + sizeof(UINT32)*(rec->Nrow)*(rec->Ncol) + 3; |
73 |
} |
} |
74 |
|
|
75 |
/* |
/* |
76 |
if (subCRC != readCRC) |
if (subCRC != readCRC) |