| 1 |
/** @file |
/** @file |
| 2 |
* $Source: /home/cvsmanager/yoda/techmodel/physics/AnticounterReader.cpp,v $ |
* $Source: /home/cvsmanager/yoda/techmodel/physics/AnticounterReader.cpp,v $ |
| 3 |
* $Id: TrackerReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $ |
* $Id: AnticounterReader.cpp,v 1.1 2004/07/20 13:27:07 kusanagi Exp $ |
| 4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
| 5 |
* |
* |
| 6 |
* Implementation of the AnticounterReader class. |
* Implementation of the AnticounterReader class. |
| 35 |
*/ |
*/ |
| 36 |
std::string AnticounterReader::GetVersionInfo(void) const { |
std::string AnticounterReader::GetVersionInfo(void) const { |
| 37 |
return |
return |
| 38 |
"$Header: /home/cvsmanager/yoda/techmodel/physics/AnticounterReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $"; |
"$Header: /home/cvsmanager/yoda/techmodel/physics/AnticounterReader.cpp,v 1.1 2004/07/20 13:27:07 kusanagi Exp $"; |
| 39 |
} |
} |
| 40 |
|
|
| 41 |
/** |
/** |
| 66 |
//Call to the routine that unpack anitocounter events |
//Call to the routine that unpack anitocounter events |
| 67 |
ERROR = ACphysics(length, (unsigned short*) data, &output); |
ERROR = ACphysics(length, (unsigned short*) data, &output); |
| 68 |
|
|
| 69 |
memcpy(anticounter->header, output.header, sizeof(anticounter->header)); |
//TO BE activated as soon i will know what codes means "error" |
| 70 |
anticounter->status = output.status; |
/*if (ERROR != 0) { |
| 71 |
anticounter->hitmap = output.hitmap; |
char *errmsg; |
| 72 |
memcpy(anticounter->regist, output.regist, sizeof(anticounter->regist)); |
switch (ERROR){ |
| 73 |
memcpy(anticounter->shift, output.shift, sizeof(anticounter->shift)); |
case 1: errmsg = "---------------------"; |
| 74 |
memcpy(anticounter->counters, output.counters, sizeof(anticounter->counters)); |
} |
| 75 |
memcpy(anticounter->coinc, output.coinc, sizeof(anticounter->coinc)); |
cat << log4cpp::Priority::ERROR |
| 76 |
anticounter->trigg = output.trigg; |
<< "Fortran77 function ACPhysics error code = " << errmsg |
|
memcpy(anticounter->clock, output.clock, sizeof(anticounter->clock)); |
|
|
memcpy(anticounter->temp, output.temp, sizeof(anticounter->temp)); |
|
|
memcpy(anticounter->DAC, output.DAC, sizeof(anticounter->DAC)); |
|
|
anticounter->CRC = output.CRC; |
|
|
|
|
|
cat << log4cpp::Priority::ERROR |
|
|
<< "Fortran77 function ACPhysics error code = " << ERROR |
|
| 77 |
<< "\n " << log4cpp::CategoryStream::ENDLINE; |
<< "\n " << log4cpp::CategoryStream::ENDLINE; |
| 78 |
|
} else {*/ |
| 79 |
|
memcpy(anticounter->header, output.header, sizeof(anticounter->header)); |
| 80 |
|
anticounter->status = output.status; |
| 81 |
|
anticounter->hitmap = output.hitmap; |
| 82 |
|
memcpy(anticounter->regist, output.regist, sizeof(anticounter->regist)); |
| 83 |
|
memcpy(anticounter->shift, output.shift, sizeof(anticounter->shift)); |
| 84 |
|
memcpy(anticounter->counters, output.counters, sizeof(anticounter->counters)); |
| 85 |
|
memcpy(anticounter->coinc, output.coinc, sizeof(anticounter->coinc)); |
| 86 |
|
anticounter->trigg = output.trigg; |
| 87 |
|
memcpy(anticounter->clock, output.clock, sizeof(anticounter->clock)); |
| 88 |
|
memcpy(anticounter->temp, output.temp, sizeof(anticounter->temp)); |
| 89 |
|
memcpy(anticounter->DAC, output.DAC, sizeof(anticounter->DAC)); |
| 90 |
|
anticounter->CRC = output.CRC; |
| 91 |
|
//} |
| 92 |
} |
} |