/[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.2 by mocchiut, Fri Jul 24 13:53:43 2009 UTC revision 1.3 by pam-fi, Wed Aug 5 18:48:37 2009 UTC
# Line 1  Line 1 
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.
# 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: /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  /**  /**
# Line 69  void ArrDumpReader::PKT_RunEvent(char* s Line 69  void ArrDumpReader::PKT_RunEvent(char* s
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       }       }

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

  ViewVC Help
Powered by ViewVC 1.1.23