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

Diff of /yoda/techmodel/CalAlarmReader.cpp

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

revision 4.4 by kusanagi, Sat May 28 10:44:10 2005 UTC revision 5.3 by kusanagi, Tue Feb 7 10:43:06 2006 UTC
# Line 1  Line 1 
1    
2  // Implementation of the CalAlarmReader class.  // Implementation of the CalAlarmReader 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"
5    
 using namespace pamela;  
6  using namespace pamela::techmodel;  using namespace pamela::techmodel;
7    
8  static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.CalAlarmReader"));  static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.CalAlarmReader"));
# Line 33  CalAlarmReader::CalAlarmReader(void): Line 21  CalAlarmReader::CalAlarmReader(void):
21   */   */
22  std::string CalAlarmReader::GetVersionInfo(void) const {  std::string CalAlarmReader::GetVersionInfo(void) const {
23    return    return
24      "$Trailer: /home/cvsmanager/yoda/techmodel/CalAlarmReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $\n";      "$Trailer: /home/cvsmanager/yoda/techmodel/CalAlarmReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 Maurizio Nagni Exp $\n";
25  }  }
26    
27  /**  /**
# Line 48  void CalAlarmReader::Init(PamelaRun *run Line 36  void CalAlarmReader::Init(PamelaRun *run
36    
37  /**  /**
38   * Unpack the CalAlarm event from an input file.   * Unpack the CalAlarm event from an input file.
39     * The CPU does not add any CRC control at the packet end.
40     * @param EventNumber
41     * @param dataLength
42   */   */
43  void CalAlarmReader::RunEvent(int EventNumber, long int length) throw (WrongCRCException){  void CalAlarmReader::RunEvent(int EventNumber, long int dataLength) throw (WrongCRCException){
44            char      subData[dataLength];
45            InputFile->read(subData, sizeof(subData));
46        calAlarm->calAlarmData        = new TArrayC(dataLength, subData);
47  }  }
48    

Legend:
Removed from v.4.4  
changed lines
  Added in v.5.3

  ViewVC Help
Powered by ViewVC 1.1.23