/[PAMELA software]/chewbacca/PamOffLineSW/techmodel/ArrDumpReader.cpp
ViewVC logotype

Diff of /chewbacca/PamOffLineSW/techmodel/ArrDumpReader.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mocchiut, Tue Sep 23 07:20:26 2008 UTC revision 1.2 by mocchiut, Fri Jul 24 13:53:43 2009 UTC
# Line 1  Line 1 
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   */   */
# Line 25  ArrDumpReader::ArrDumpReader(void): Line 25  ArrDumpReader::ArrDumpReader(void):
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  /**  /**
# Line 66  void ArrDumpReader::PKT_RunEvent(char* s Line 66  void ArrDumpReader::PKT_RunEvent(char* s
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             {             {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23