| 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 5.0 2005/08/29 09:46:13 Maurizio Nagni Exp $ |
* $Id: S4Reader.cpp,v 6.0 2006/02/07 17:11:11 kusanagi Exp $ |
| 4 |
* $Author: Maurizio Nagni $ |
* $Author: kusanagi $ |
| 5 |
* |
* |
| 6 |
* Implementation of the S4Reader class. |
* Implementation of the S4Reader class. |
| 7 |
*/ |
*/ |
| 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 5.0 2005/08/29 09:46:13 Maurizio Nagni Exp $"; |
"$Header: /home/cvsmanager/yoda/techmodel/physics/S4Reader.cpp,v 6.0 2006/02/07 17:11:11 kusanagi Exp $"; |
| 33 |
} |
} |
| 34 |
|
|
| 35 |
/** |
/** |
| 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) && |