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

Diff of /yoda/techmodel/CalibS4Reader.cpp

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

revision 4.4 by kusanagi, Sat May 28 10:44:11 2005 UTC revision 6.3 by mocchiut, Fri Sep 29 10:19:20 2006 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /home/cvsmanager/yoda/techmodel/CalibS4Reader.cpp,v $   * $Source: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/CalibS4Reader.cpp,v $
3   * $Id: CalibS4Reader.cpp,v 4.0 2005/03/06 04:33:02 kusanagi Exp $   * $Id: CalibS4Reader.cpp,v 6.2 2006/05/30 19:10:03 kusanagi Exp $
4   * $Author: kusanagi $   * $Author: kusanagi $
5   *   *
6   * Implementation of the LogReader class.   * Implementation of the LogReader class.
# Line 8  Line 8 
8  * Control the CRC for the entire data Packet not just for single records  * Control the CRC for the entire data Packet not just for single records
9   */   */
10    
11  #define UINT unsigned int  
 #define BYTE  unsigned char  
 #include <string>  
 #include <log4cxx/logger.h>  
12  extern "C" {  extern "C" {
 #include <sys/time.h>  
13  #include "CRC.h"  #include "CRC.h"
14  }  }
   
 #include <fstream>  
 #include "stdio.h"  
15  #include "ReaderAlgorithms.h"  #include "ReaderAlgorithms.h"
 #include "event/physics/S4/S4Event.h"  
 //#include "event/CalibS4Event.h"  
   
16    
 using namespace pamela;  
17  using namespace pamela::techmodel;  using namespace pamela::techmodel;
18    
19  static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.CalibS4Reader"));  static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.CalibS4Reader"));
# Line 43  CalibS4Reader::CalibS4Reader(void): Line 32  CalibS4Reader::CalibS4Reader(void):
32   */   */
33  std::string CalibS4Reader::GetVersionInfo(void) const {  std::string CalibS4Reader::GetVersionInfo(void) const {
34    return    return
35      "$Header: /home/cvsmanager/yoda/techmodel/CalibS4Reader.cpp,v 4.0 2005/03/06 04:33:02 kusanagi Exp $\n";      "$Header: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/CalibS4Reader.cpp,v 6.2 2006/05/30 19:10:03 kusanagi Exp $\n";
36  }  }
37    
38  /**  /**
# Line 63  void CalibS4Reader::RunEvent(int EventNu Line 52  void CalibS4Reader::RunEvent(int EventNu
52            
53      int offset;      int offset;
54      char subData[length];    //impulse*(11 + 10 + 01 + 00)*eventLength + CRC = 128*4*6 + UINT16      char subData[length];    //impulse*(11 + 10 + 01 + 00)*eventLength + CRC = 128*4*6 + UINT16
55        memset(subData,  0, length*sizeof(char));
56      UINT16    subCRC;      //CRC of the data      UINT16    subCRC;      //CRC of the data
57      UINT16    readCRC;     //CRC read from the end of the subpacket      UINT16    readCRC;     //CRC read from the end of the subpacket
58    

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

  ViewVC Help
Powered by ViewVC 1.1.23