19 |
*/ |
*/ |
20 |
std::string NeutronDetectorReader::GetVersionInfo(void) const { |
std::string NeutronDetectorReader::GetVersionInfo(void) const { |
21 |
return |
return |
22 |
"$Header: /repository/PamOffLineSW/physics/NeutronDetectorReader.cpp,v 1.3 2008-03-05 11:37:37 messineo Exp $"; |
"$Header: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/physics/NeutronDetectorReader.cpp,v 1.1.1.1 2008/09/23 07:20:22 mocchiut Exp $"; |
23 |
} |
} |
24 |
|
|
25 |
/** |
/** |
50 |
*/ |
*/ |
51 |
void NeutronDetectorReader::RunEvent(int EventNumber, const char subData[], long int length) { |
void NeutronDetectorReader::RunEvent(int EventNumber, const char subData[], long int length) { |
52 |
NeutronRecord *rec; |
NeutronRecord *rec; |
53 |
const int lenNeutronData = 12; |
const int lenNeutronData = 12; |
54 |
//char *data = new char[lenght]; |
//char *data = new char[lenght]; |
55 |
//memcpy(data, subData, lenght); |
//memcpy(data, subData, lenght); |
56 |
neutronEvent->Records->Clear(); |
neutronEvent->Records->Clear(); |
63 |
rec->trigPhysics = (UINT8)subData[length-offset]; |
rec->trigPhysics = (UINT8)subData[length-offset]; |
64 |
rec->upperBack = (((UINT8)subData[length-offset+1])>>4); |
rec->upperBack = (((UINT8)subData[length-offset+1])>>4); |
65 |
rec->bottomBack = (((UINT8)subData[length-offset+1])&0x0F); |
rec->bottomBack = (((UINT8)subData[length-offset+1])&0x0F); |
66 |
} |
} |
67 |
neutronEvent->unpackError = 0; |
neutronEvent->unpackError = 0; |
68 |
} else { |
} else { |
69 |
neutronEvent->unpackError = 1; |
neutronEvent->unpackError = 1; |