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

Diff of /yoda/techmodel/S4InitReader.cpp

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

revision 5.0 by kusanagi, Mon Aug 29 09:46:13 2005 UTC revision 6.1 by kusanagi, Tue May 30 19:10:02 2006 UTC
# Line 1  Line 1 
1    
2  // Implementation of the S4InitReader class.  // Implementation of the S4InitReader class.
   
3    
 #define UINT unsigned int  
 #define BYTE  unsigned char  
 #include <string>  
 #include <log4cxx/logger.h>  
 extern "C" {  
     #include "CRC.h"  
 }  
   
 #include <fstream>  
 #include "stdio.h"  
4  #include "ReaderAlgorithms.h"  #include "ReaderAlgorithms.h"
   
   
 using namespace pamela;  
5  using namespace pamela::techmodel;  using namespace pamela::techmodel;
6    
7  static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.S4InitReader"));  static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.S4InitReader"));
# Line 34  S4InitReader::S4InitReader(void): Line 20  S4InitReader::S4InitReader(void):
20   */   */
21  std::string S4InitReader::GetVersionInfo(void) const {  std::string S4InitReader::GetVersionInfo(void) const {
22    return    return
23      "$Trailer: /home/cvsmanager/yoda/techmodel/S4InitReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $\n";      "$Trailer: /home/cvsmanager/yoda/techmodel/S4InitReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 Maurizio Nagni Exp $\n";
24  }  }
25    
26  /**  /**
# Line 50  void S4InitReader::Init(PamelaRun *run) Line 36  void S4InitReader::Init(PamelaRun *run)
36  /**  /**
37   * Unpack the S4Init event from an input file.   * Unpack the S4Init event from an input file.
38   */   */
39  void S4InitReader::RunEvent(int EventNumber, long int length) throw (WrongCRCException){  void S4InitReader::RunEvent(int EventNumber, long int dataLength) throw (WrongCRCException){
40        char      subData[dataLength];
41        InputFile->read(subData, sizeof(subData));
42        s4Init->s4InitData        = new TArrayC(dataLength, subData);
43  }  }
44    

Legend:
Removed from v.5.0  
changed lines
  Added in v.6.1

  ViewVC Help
Powered by ViewVC 1.1.23