/[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.13 by mocchiut, Thu Nov 16 11:01:34 2006 UTC revision 6.14 by mocchiut, Thu Nov 16 12:28:17 2006 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Author: mocchiut $   * $Author: mocchiut $
3   * $Date: 2006/11/16 10:49:40 $   * $Date: 2006/11/16 11:01:34 $
4   * $Revision: 6.12 $   * $Revision: 6.13 $
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.12 2006/11/16 10:49:40 mocchiut Exp $\n";      "$Header: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/EventReader.cpp,v 6.13 2006/11/16 11:01:34 mocchiut Exp $\n";
91  }  }
92    
93  /**  /**
# Line 150  void EventReader::RunEvent(int EventNumb Line 150  void EventReader::RunEvent(int EventNumb
150              Float_t padfrac = 64. - pd1 * 64.;              Float_t padfrac = 64. - pd1 * 64.;
151              //              //
152              UInt_t padbytes = (UInt_t)padfrac;              UInt_t padbytes = (UInt_t)padfrac;
153              if ( padbytes > 0 ){              if ( padbytes > 0 && !InputFile->eof() ){
154                oss.str("");                oss.str("");
155                oss << " padbytes is " << padbytes << " \n skipping these bytes\n";                oss << " padbytes is " << padbytes << " \n skipping these bytes\n";
156                logger->info(oss.str().c_str());                logger->info(oss.str().c_str());
# Line 201  void EventReader::RunEvent(int EventNumb Line 201  void EventReader::RunEvent(int EventNumb
201      oss << "----endPck " << Header->GetPscuHeader()->GetCounter() << "\n";      oss << "----endPck " << Header->GetPscuHeader()->GetCounter() << "\n";
202      logger->info(oss.str().c_str());      logger->info(oss.str().c_str());
203    }    }
204    if ( InputFile->fail() || InputFile->bad() ) printf(" ERROR READING RAW FILE! \n"); // E. Mocchiutti    if ( !InputFile->eof() && ( InputFile->bad() || InputFile->fail() ) ) printf("\n\n ERROR READING RAW FILE! \n\n"); // E. Mocchiutti
205    
206      Header->GetCounter()->PrintCounters();      Header->GetCounter()->PrintCounters();
207      //if (corruptedPacketFile.is_open()) corruptedPacketFile.close();      //if (corruptedPacketFile.is_open()) corruptedPacketFile.close();

Legend:
Removed from v.6.13  
changed lines
  Added in v.6.14

  ViewVC Help
Powered by ViewVC 1.1.23