| 1 |
/** @file |
/** @file |
| 2 |
* $Source: /home/cvsmanager/yoda/techmodel/physics/TofReader.cpp,v $ |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/physics/TofReader.cpp,v $ |
| 3 |
* $Id: TofReader.cpp,v 5.1 2006/02/04 12:37:46 kusanagi Exp $ |
* $Id: TofReader.cpp,v 6.2 2006/05/30 19:10:03 kusanagi Exp $ |
| 4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
| 5 |
* |
* |
| 6 |
* Implementation of the CalorimeterReader class. |
* Implementation of the CalorimeterReader class. |
| 50 |
*/ |
*/ |
| 51 |
std::string TofReader::GetVersionInfo(void) const { |
std::string TofReader::GetVersionInfo(void) const { |
| 52 |
return |
return |
| 53 |
"$Header: /home/cvsmanager/yoda/techmodel/physics/TofReader.cpp,v 5.1 2006/02/04 12:37:46 kusanagi Exp $"; |
"$Header: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/physics/TofReader.cpp,v 6.2 2006/05/30 19:10:03 kusanagi Exp $"; |
| 54 |
} |
} |
| 55 |
|
|
| 56 |
/** |
/** |
| 92 |
if (ERROR != 0) { |
if (ERROR != 0) { |
| 93 |
char *errmsg; |
char *errmsg; |
| 94 |
switch (ERROR){ |
switch (ERROR){ |
| 95 |
case 1: errmsg = "GENERIC TOF ERROR"; |
case 1: errmsg = "CRC TOF ERROR"; |
| 96 |
break; |
break; |
| 97 |
default: errmsg = "TOF ERRROR CODE UNIDENTIFIED"; |
default: errmsg = "TOF ERROR CODE UNIDENTIFIED"; |
| 98 |
} |
} |
| 99 |
oss.str(""); |
oss.str(""); |
| 100 |
oss << "Fortran77 function tofunpack: " << errmsg; |
oss << "Fortran77 function tofunpack: " << errmsg; |
| 106 |
// only for a variable tof->tof1int = evento_.IEV2; |
// only for a variable tof->tof1int = evento_.IEV2; |
| 107 |
// memcpy(tof->tof1int, tofvar_.tof1int, sizeof(tofvar_.tof1int)); |
// memcpy(tof->tof1int, tofvar_.tof1int, sizeof(tofvar_.tof1int)); |
| 108 |
// printf("tof->tof1int[1] %i \n",tof->tof1int[0]); |
// printf("tof->tof1int[1] %i \n",tof->tof1int[0]); |
| 109 |
|
tof->unpackError = (unsigned short)ERROR; |
| 110 |
|
|
| 111 |
// for (int i = 0; i < 6; i++){ |
// for (int i = 0; i < 6; i++){ |
| 112 |
// tof->tof1int[i] = tofvar_.tof1int[i]; |
// tof->tof1int[i] = tofvar_.tof1int[i]; |