|
#define BYTE unsigned char |
|
|
#include <string> |
|
1 |
#include <log4cxx/logger.h> |
#include <log4cxx/logger.h> |
2 |
#include <fstream> |
#include <fstream> |
3 |
#include "stdio.h" |
|
4 |
extern "C" { |
extern "C" { |
5 |
#include "CRC.h" |
|
6 |
//Struct per il passaggio di dati da e verso la chiamata fortran |
//Struct per il passaggio di dati da e verso la chiamata fortran |
7 |
extern struct { |
extern struct { |
8 |
int iev; |
int iev; |
42 |
*/ |
*/ |
43 |
std::string CalibCalPedReader::GetVersionInfo(void) const { |
std::string CalibCalPedReader::GetVersionInfo(void) const { |
44 |
return |
return |
45 |
"$Header: /home/cvsmanager/yoda/techmodel/CalibCalPedReader.cpp,v 2.2 2004/12/03 22:08:00 kusanagi Exp $\n"; |
"$Header: /home/cvsmanager/yoda/techmodel/CalibCalPedReader.cpp,v 2.3 2004/12/09 13:17:24 kusanagi Exp $\n"; |
46 |
} |
} |
47 |
|
|
48 |
/** |
/** |
65 |
InputFile->read(packetData, sizeof(packetData)); |
InputFile->read(packetData, sizeof(packetData)); |
66 |
|
|
67 |
calpedestal_((char*)packetData, &dataLength, &ERROR); |
calpedestal_((char*)packetData, &dataLength, &ERROR); |
68 |
|
|
69 |
|
calibCalPed->unpackError = ERROR; |
70 |
if (ERROR != 0) { |
if (ERROR != 0) { |
71 |
char *errmsg; |
char *errmsg; |
72 |
switch (ERROR){ |
switch (ERROR){ |