1 |
/** @file |
/** @file |
2 |
* $Source: /home/cvsmanager/yoda/techmodel/CalibAcReader.cpp,v $ |
* $Source: /home/cvsmanager/yoda/techmodel/CalibAcReader.cpp,v $ |
3 |
* $Id: CalibAcReader.cpp,v 1.1 2004/07/08 12:31:42 kusanagi Exp $ |
* $Id: CalibAcReader.cpp,v 1.3 2004/08/24 16:01:57 kusanagi Exp $ |
4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Implementation of the ArrDumpReader class. |
* Implementation of the ArrDumpReader class. |
36 |
* Get a string with the version info of the algorithm. |
* Get a string with the version info of the algorithm. |
37 |
*/ |
*/ |
38 |
std::string CalibAcReader::GetVersionInfo(void) const { |
std::string CalibAcReader::GetVersionInfo(void) const { |
39 |
return "$Header: /home/cvsmanager/yoda/techmodel/CalibAcReader.cpp,v 1.1 2004/07/08 12:31:42 kusanagi Exp $\n"; |
return "$Header: /home/cvsmanager/yoda/techmodel/CalibAcReader.cpp,v 1.3 2004/08/24 16:01:57 kusanagi Exp $\n"; |
40 |
} |
} |
41 |
|
|
42 |
/** |
/** |
77 |
|
|
78 |
CalibAc->header = output.header; |
CalibAc->header = output.header; |
79 |
memcpy(CalibAc->status, output.status, sizeof(CalibAc->status)); |
memcpy(CalibAc->status, output.status, sizeof(CalibAc->status)); |
80 |
memcpy(CalibAc->DAC, output.DAC, sizeof(CalibAc->DAC)); |
memcpy(CalibAc->temp, output.temp, sizeof(CalibAc->temp)); |
81 |
|
memcpy(CalibAc->DAC1, output.DAC1, sizeof(CalibAc->DAC1)); |
82 |
|
memcpy(CalibAc->DAC2, output.DAC2, sizeof(CalibAc->DAC2)); |
83 |
memcpy(CalibAc->regist, output.regist, sizeof(CalibAc->regist)); |
memcpy(CalibAc->regist, output.regist, sizeof(CalibAc->regist)); |
84 |
memcpy(CalibAc->time, output.time, sizeof(CalibAc->time)); |
memcpy(CalibAc->time, output.time, sizeof(CalibAc->time)); |
85 |
CalibAc->n_tr = output.n_tr; |
CalibAc->n_tr = output.n_tr; |
89 |
CalibAc->iCRC = output.iCRC; |
CalibAc->iCRC = output.iCRC; |
90 |
CalibAc->tail = output.tail; |
CalibAc->tail = output.tail; |
91 |
CalibAc->CRC = output.CRC; |
CalibAc->CRC = output.CRC; |
|
free(subData); |
|
92 |
} else { |
} else { |
93 |
cat << log4cpp::Priority::ERROR |
cat << log4cpp::Priority::ERROR |
94 |
<< "Wrong CRC on Subpacket in ArrDump Packet " |
<< "Wrong CRC on Subpacket in ArrDump Packet " |
95 |
<< "\n " << log4cpp::CategoryStream::ENDLINE; |
<< "\n " << log4cpp::CategoryStream::ENDLINE; |
96 |
} |
} |
97 |
|
delete [] subData; |
98 |
} |
} |