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

Diff of /yoda/techmodel/EventReader.cpp

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

revision 6.8 by pam-rm2, Wed Aug 23 14:39:44 2006 UTC revision 6.9 by mocchiut, Fri Sep 29 10:19:22 2006 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Author: kusanagi $   * $Author: pam-rm2 $
3   * $Date: 2006/05/30 19:58:25 $   * $Date: 2006/08/23 14:39:44 $
4   * $Revision: 6.6 $   * $Revision: 6.8 $
5   *   *
6   * Implementation of the functions of a sample Algorithm class.   * Implementation of the functions of a sample Algorithm class.
7   * This file can be used as a templace to develop your own algorithm.   * This file can be used as a templace to develop your own algorithm.
# Line 87  EventReader::EventReader(int packetsLimi Line 87  EventReader::EventReader(int packetsLimi
87   */   */
88  std::string EventReader::GetVersionInfo(void) const {  std::string EventReader::GetVersionInfo(void) const {
89    return    return
90      "$Header: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/EventReader.cpp,v 6.6 2006/05/30 19:58:25 kusanagi Exp $\n";      "$Header: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/EventReader.cpp,v 6.8 2006/08/23 14:39:44 pam-rm2 Exp $\n";
91  }  }
92    
93  /**  /**
# Line 188  void EventReader::UnpackPscuHeader(void) Line 188  void EventReader::UnpackPscuHeader(void)
188    stringstream oss;    stringstream oss;
189    int response = 0;    int response = 0;
190    char buff[16];    char buff[16];
191      memset(buff,  0, 16*sizeof(char));
192    InputFile->read(buff, sizeof(buff));    InputFile->read(buff, sizeof(buff));
193        
194        
# Line 284  bool EventReader::FindStart(void) throw Line 285  bool EventReader::FindStart(void) throw
285    int  loop = -1;    int  loop = -1;
286    char buffer[buffSize];    char buffer[buffSize];
287    bool flagOverPad = false;    bool flagOverPad = false;
288      memset(buffer,  0, buffSize*sizeof(char));
289    while (!InputFile->eof()) {    while (!InputFile->eof()) {
290      InputFile->read(buffer, sizeof(buffer));      InputFile->read(buffer, sizeof(buffer));
291      index = 0;      index = 0;

Legend:
Removed from v.6.8  
changed lines
  Added in v.6.9

  ViewVC Help
Powered by ViewVC 1.1.23