/[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 6.0 by kusanagi, Tue Feb 7 17:11:10 2006 UTC revision 6.3 by mocchiut, Fri Sep 29 10:19:26 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 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        memset(subData,  0, dataLength*sizeof(char));
42        InputFile->read(subData, sizeof(subData));
43        s4Init->s4InitData        = new TArrayC(dataLength, subData);
44  }  }
45    

Legend:
Removed from v.6.0  
changed lines
  Added in v.6.3

  ViewVC Help
Powered by ViewVC 1.1.23