/[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 1.7 by kusanagi, Fri Aug 20 15:01:42 2004 UTC revision 1.8 by kusanagi, Tue Aug 24 13:19:59 2004 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Author: kusanagi $   * $Author: kusanagi $
3   * $Date: 2004/08/19 15:24:46 $   * $Date: 2004/08/20 15:01:42 $
4   * $Revision: 1.6 $   * $Revision: 1.7 $
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 75  EventReader::EventReader(void): Line 75  EventReader::EventReader(void):
75   */   */
76  std::string EventReader::GetVersionInfo(void) const {  std::string EventReader::GetVersionInfo(void) const {
77    return    return
78      "$Header: /home/cvsmanager/yoda/techmodel/EventReader.cpp,v 1.6 2004/08/19 15:24:46 kusanagi Exp $\n";      "$Header: /home/cvsmanager/yoda/techmodel/EventReader.cpp,v 1.7 2004/08/20 15:01:42 kusanagi Exp $\n";
79  }  }
80    
81  /**  /**
# Line 218  int EventReader::UnpackPscuHeader(void) Line 218  int EventReader::UnpackPscuHeader(void)
218    } else {    } else {
219      cat <<  log4cpp::Priority::ERROR <<  " WRONG CRC FOR HEADER "      cat <<  log4cpp::Priority::ERROR <<  " WRONG CRC FOR HEADER "
220          <<  " " << log4cpp::CategoryStream::ENDLINE;          <<  " " << log4cpp::CategoryStream::ENDLINE;
221        InputFile->seekg(-(13), std::ios::cur);
222      response =  false;      response =  false;
223    }    }
224      char tmpId1[4];      char tmpId1[4];
# Line 282  int EventReader::FindStart(void) throw ( Line 283  int EventReader::FindStart(void) throw (
283        if (InputFile->eof()) {        if (InputFile->eof()) {
284          throw Exception("Extra bytes over the last packets");          throw Exception("Extra bytes over the last packets");
285        } else {        } else {
286          return 0;          subIndex = 0;
287            //return 0;
288        }        }
289        //InputFile->seekg(-(subIndex+1), std::ios::cur);        //InputFile->seekg(-(subIndex+1), std::ios::cur);
290        //subIndex = 0;        //subIndex = 0;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.23