22 |
*/ |
*/ |
23 |
std::string NeutronDetectorReader::GetVersionInfo(void) const { |
std::string NeutronDetectorReader::GetVersionInfo(void) const { |
24 |
return |
return |
25 |
"$Header: /home/cvsmanager/yoda/techmodel/physics/NeutronDetectorReader.cpp,v 5.0 2005/08/29 09:46:13 Maurizio Nagni Exp $"; |
"$Header: /home/cvsmanager/yoda/techmodel/physics/NeutronDetectorReader.cpp,v 6.0 2006/02/07 17:11:11 kusanagi Exp $"; |
26 |
} |
} |
27 |
|
|
28 |
/** |
/** |
78 |
|
|
79 |
bool NeutronDetectorReader::haveData(const char data[], long int length){ |
bool NeutronDetectorReader::haveData(const char data[], long int length){ |
80 |
bool ret = false; |
bool ret = false; |
81 |
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)) ret = true; |
|
((UINT8)data[length - 2] == 0x00)&&((UINT8)data[length - 6] == 0x00)&&((UINT8)data[length - 10] == 0x00)) ret = true; |
|
82 |
return ret; |
return ret; |
83 |
} |
} |