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

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

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

revision 1.1 by mocchiut, Tue Sep 23 07:20:27 2008 UTC revision 1.2 by mocchiut, Fri Jul 24 13:53:46 2009 UTC
# Line 1  Line 1 
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   */   */
# Line 24  TabDumpReader::TabDumpReader(void): Line 24  TabDumpReader::TabDumpReader(void):
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  /**  /**
# Line 63  void TabDumpReader::PKT_RunEvent(char* s Line 63  void TabDumpReader::PKT_RunEvent(char* s
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)

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

  ViewVC Help
Powered by ViewVC 1.1.23