/[PAMELA software]/yoda/techmodel/physics/S4Reader.cpp
ViewVC logotype

Diff of /yoda/techmodel/physics/S4Reader.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, Wed Aug 16 08:20:30 2006 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /home/cvsmanager/yoda/techmodel/physics/S4Reader.cpp,v $   * $Source: /home/cvsmanager/yoda/techmodel/physics/S4Reader.cpp,v $
3   * $Id: S4Reader.cpp,v 4.4 2005/05/28 10:44:13 kusanagi Exp $   * $Id: S4Reader.cpp,v 6.0 2006/02/07 17:11:11 kusanagi Exp $
4   * $Author: kusanagi $   * $Author: kusanagi $
5   *   *
6   * Implementation of the S4Reader class.   * Implementation of the S4Reader class.
# Line 29  S4Reader::S4Reader(void): Line 29  S4Reader::S4Reader(void):
29   */   */
30  std::string S4Reader::GetVersionInfo(void) const {  std::string S4Reader::GetVersionInfo(void) const {
31    return    return
32      "$Header: /home/cvsmanager/yoda/techmodel/physics/S4Reader.cpp,v 4.4 2005/05/28 10:44:13 kusanagi Exp $";      "$Header: /home/cvsmanager/yoda/techmodel/physics/S4Reader.cpp,v 6.0 2006/02/07 17:11:11 kusanagi Exp $";
33  }  }
34    
35  /**  /**
# Line 101  int S4Reader::haveData(const char data[] Line 101  int S4Reader::haveData(const char data[]
101       */       */
102                    
103      //Check the existence of NeutronDetector data      //Check the existence of NeutronDetector data
104      if (((UINT8)data[length - 1] == 0x0F)&&((UINT8)data[length - 5] == 0x0F)&&((UINT8)data[length - 9] == 0x0F) &&      if (((UINT8)data[length - 1] == 0x0F)&&((UINT8)data[length - 5] == 0x0F)&&((UINT8)data[length - 9] == 0x0F)) {
         ((UINT8)data[length - 2] == 0x00)&&((UINT8)data[length - 6] == 0x00)&&((UINT8)data[length - 10] == 0x00)) {  
105          //Chech the existance of S4 data before NeutronDetector          //Chech the existance of S4 data before NeutronDetector
106          if (((UINT8)data[length - 14] == 0x03) &&          if (((UINT8)data[length - 14] == 0x03) &&
107              ((UINT8)data[length - 15] == 0x00) &&              ((UINT8)data[length - 15] == 0x00) &&

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

  ViewVC Help
Powered by ViewVC 1.1.23