/[PAMELA software]/yoda/techmodel/TabDumpReader.cpp
ViewVC logotype

Diff of /yoda/techmodel/TabDumpReader.cpp

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

revision 1.4 by kusanagi, Tue Aug 24 16:01:57 2004 UTC revision 1.5 by kusanagi, Thu Aug 26 08:21:31 2004 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /home/cvsmanager/yoda/techmodel/TabDumpReader.cpp,v $   * $Source: /home/cvsmanager/yoda/techmodel/TabDumpReader.cpp,v $
3   * $Id: TabDumpReader.cpp,v 1.3 2004/07/26 23:09:45 kusanagi Exp $   * $Id: TabDumpReader.cpp,v 1.4 2004/08/24 16:01:57 kusanagi Exp $
4   * $Author: kusanagi $   * $Author: kusanagi $
5   *   *
6   * Implementation of the TabDumpReader class.   * Implementation of the TabDumpReader class.
# Line 32  TabDumpReader::TabDumpReader(void): Line 32  TabDumpReader::TabDumpReader(void):
32   * Get a string with the version info of the algorithm.   * Get a string with the version info of the algorithm.
33   */   */
34  std::string TabDumpReader::GetVersionInfo(void) const {  std::string TabDumpReader::GetVersionInfo(void) const {
35    return "$Header: /home/cvsmanager/yoda/techmodel/TabDumpReader.cpp,v 1.3 2004/07/26 23:09:45 kusanagi Exp $\n";    return "$Header: /home/cvsmanager/yoda/techmodel/TabDumpReader.cpp,v 1.4 2004/08/24 16:01:57 kusanagi Exp $\n";
36  }  }
37    
38  /**  /**
# Line 79  void TabDumpReader::RunEvent(int EventNu Line 79  void TabDumpReader::RunEvent(int EventNu
79              rec->Tab_ID  = ((UINT8)subData[offset])&0xFF;              rec->Tab_ID  = ((UINT8)subData[offset])&0xFF;
80              rec->Nrow = ((UINT8)subData[offset+1])&0xFF;              rec->Nrow = ((UINT8)subData[offset+1])&0xFF;
81              rec->Ncol = ((UINT8)subData[offset+2])&0xFF;              rec->Ncol = ((UINT8)subData[offset+2])&0xFF;
82              rec->Data = new UINT32[(rec->Nrow)*(rec->Ncol)];              //rec->Data = new UINT32[(rec->Nrow)*(rec->Ncol)];
83              size = sizeof(UINT32)*(rec->Nrow)*(rec->Ncol);              size = sizeof(UINT32)*(rec->Nrow)*(rec->Ncol);
84              memcpy(rec->Data, (UINT32*)(subData+offset+3), size);              rec->Data = new TArrayI((int)((rec->Nrow)*(rec->Ncol)), (int*)(subData+offset+3));
85                //memcpy(rec->Data, (UINT32*)(subData+offset+3), size);
86              offset = offset + size + 3;              offset = offset + size + 3;
87          }          }
88      } else {      } else {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.23