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 2.1 2004/09/22 13:14:31 kusanagi Exp $"; |
"$Header: /home/cvsmanager/yoda/techmodel/physics/NeutronDetectorReader.cpp,v 2.2 2004/12/09 08:48:54 kusanagi Exp $"; |
26 |
} |
} |
27 |
|
|
28 |
/** |
/** |
57 |
for (int i = 0; i < 3; i++){ |
for (int i = 0; i < 3; i++){ |
58 |
offset = lenNeutronData - 4*i; |
offset = lenNeutronData - 4*i; |
59 |
rec = new(recs[i]) NeutronRecord(); //aggiungo un nuovo NeutronRecord all'evento |
rec = new(recs[i]) NeutronRecord(); //aggiungo un nuovo NeutronRecord all'evento |
60 |
rec->upperTrig = (((BYTE)data[lenght-offset])>>4); |
rec->upperTrig = (((UINT8)data[lenght-offset])>>4); |
61 |
rec->bottomTrig = (((BYTE)data[lenght-offset])&0x0F); |
rec->bottomTrig = (((UINT8)data[lenght-offset])&0x0F); |
62 |
rec->upperBack = (((BYTE)data[lenght-offset+1])>>4); |
rec->upperBack = (((UINT8)data[lenght-offset+1])>>4); |
63 |
rec->bottomBack = (((BYTE)data[lenght-offset+1])&0x0F); |
rec->bottomBack = (((UINT8)data[lenght-offset+1])&0x0F); |
64 |
} |
} |
65 |
|
neutronEvent->unpackError = 0; |
66 |
|
} else { |
67 |
|
neutronEvent->unpackError = 1; |
68 |
} |
} |
69 |
delete[] data; |
delete[] data; |
70 |
} |
} |