45 |
*/ |
*/ |
46 |
std::string CalibCalPulse2Reader::GetVersionInfo(void) const { |
std::string CalibCalPulse2Reader::GetVersionInfo(void) const { |
47 |
return |
return |
48 |
"$Header: /home/cvsmanager/yoda/techmodel/CalibCalPulse2Reader.cpp,v 2.0 2004/09/21 20:50:54 kusanagi Exp $\n"; |
"$Header: /home/cvsmanager/yoda/techmodel/CalibCalPulse2Reader.cpp,v 4.4 2005/05/28 10:44:11 kusanagi Exp $\n"; |
49 |
} |
} |
50 |
|
|
51 |
/** |
/** |
66 |
char packetData[dataLength]; |
char packetData[dataLength]; |
67 |
int ERROR; |
int ERROR; |
68 |
InputFile->read(packetData, sizeof(packetData)); |
InputFile->read(packetData, sizeof(packetData)); |
69 |
|
|
70 |
calpulse_(packetData, &dataLength, &ERROR); |
calpulse_(packetData, &dataLength, &ERROR); |
71 |
|
|
72 |
|
calibCalPulse2->unpackError = ERROR; |
73 |
|
|
74 |
if (ERROR != 0) { |
if (ERROR != 0) { |
75 |
char *errmsg; |
char *errmsg; |
76 |
switch (ERROR){ |
switch (ERROR){ |
78 |
} |
} |
79 |
oss.str(""); |
oss.str(""); |
80 |
oss << "Fortran77 function calpulse error code = " << ERROR |
oss << "Fortran77 function calpulse error code = " << ERROR |
81 |
<< "\n" <<errmsg; |
<< " " << errmsg; |
82 |
logger->warn(oss.str().c_str()); |
logger->warn(oss.str().c_str()); |
83 |
} else { |
} //else { |
84 |
//Store the unpacked data |
//Store the unpacked data |
85 |
calibCalPulse2->iev = calpul_.iev; |
calibCalPulse2->iev = calpul_.iev; |
86 |
memcpy(calibCalPulse2->pstwerr, calpul_.pstwerr, sizeof(calibCalPulse2->pstwerr)); |
memcpy(calibCalPulse2->pstwerr, calpul_.pstwerr, sizeof(calibCalPulse2->pstwerr)); |
96 |
} |
} |
97 |
} |
} |
98 |
//----------------------------------------------------------------------------------------- |
//----------------------------------------------------------------------------------------- |
99 |
} |
//} |
100 |
} |
} |
101 |
|
|