1 |
/** @file |
/** @file |
2 |
* $Source: /home/cvsmanager/yoda/techmodel/CalibTrk2Reader.cpp,v $ |
* $Source: /home/cvsmanager/yoda/techmodel/CalibTrk2Reader.cpp,v $ |
3 |
* $Id: CalibTrk2Reader.cpp,v 1.2 2004/07/06 13:31:18 kusanagi Exp $ |
* $Id: CalibTrk2Reader.cpp,v 1.3 2004/07/17 20:03:38 kusanagi Exp $ |
4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Implementation of the LogReader class. |
* Implementation of the LogReader class. |
69 |
*/ |
*/ |
70 |
std::string CalibTrk2Reader::GetVersionInfo(void) const { |
std::string CalibTrk2Reader::GetVersionInfo(void) const { |
71 |
return |
return |
72 |
"$Header: /home/cvsmanager/yoda/techmodel/CalibTrk2Reader.cpp,v 1.2 2004/07/06 13:31:18 kusanagi Exp $\n"; |
"$Header: /home/cvsmanager/yoda/techmodel/CalibTrk2Reader.cpp,v 1.3 2004/07/17 20:03:38 kusanagi Exp $\n"; |
73 |
} |
} |
74 |
|
|
75 |
/** |
/** |
137 |
memcpy(calibTrk2->nbad_l2, trkcalib_.nbad_l2, sizeof(calibTrk2->nbad_l2)); |
memcpy(calibTrk2->nbad_l2, trkcalib_.nbad_l2, sizeof(calibTrk2->nbad_l2)); |
138 |
memcpy(calibTrk2->nbad_l3, trkcalib_.nbad_l3, sizeof(calibTrk2->nbad_l3)); |
memcpy(calibTrk2->nbad_l3, trkcalib_.nbad_l3, sizeof(calibTrk2->nbad_l3)); |
139 |
memcpy(calibTrk2->cal_flag, trkcalib_.cal_flag, sizeof(calibTrk2->cal_flag)); |
memcpy(calibTrk2->cal_flag, trkcalib_.cal_flag, sizeof(calibTrk2->cal_flag)); |
140 |
memcpy(calibTrk2->checksum, trkcalib_.checksum, sizeof(calibTrk2->checksum)); |
|
141 |
memcpy(calibTrk2->DSPbad_par,trkcalib_.DSPbad_par, sizeof(calibTrk2->DSPbad_par)); |
//--------have to invert array because of FORTRAN <-> C different management of the indexes |
142 |
memcpy(calibTrk2->DSPped_par,trkcalib_.DSPped_par, sizeof(calibTrk2->DSPped_par)); |
int tempBad_par[3072][6]; |
143 |
memcpy(calibTrk2->DSPsig_par,trkcalib_.DSPsig_par, sizeof(calibTrk2->DSPsig_par)); |
int tempPed_par[3072][6]; |
144 |
|
int tempSig_par[3072][6]; |
145 |
|
memcpy(tempBad_par,trkcalib_.DSPbad_par, sizeof(tempBad_par)); |
146 |
|
memcpy(tempPed_par,trkcalib_.DSPped_par, sizeof(tempPed_par)); |
147 |
|
memcpy(tempSig_par,trkcalib_.DSPsig_par, sizeof(tempSig_par)); |
148 |
|
|
149 |
|
for (int i = 0; i < 6; i++){ |
150 |
|
for (int j = 0; j < 3072; j++){ |
151 |
|
calibTrk2->DSPbad_par[i][j] = tempBad_par[j][i]; |
152 |
|
calibTrk2->DSPped_par[i][j] = tempPed_par[j][i]; |
153 |
|
calibTrk2->DSPsig_par[i][j] = tempSig_par[j][i]; |
154 |
|
} |
155 |
|
} |
156 |
|
//----------------------------------------------------------------------------------------- |
157 |
|
|
158 |
cat << log4cpp::Priority::ERROR |
cat << log4cpp::Priority::ERROR |
159 |
<< "Fortran77 function trkcalibpkt error code = " << ERROR |
<< "Fortran77 function trkcalibpkt error code = " << ERROR |