14 |
float calrms[4][11][96]; |
float calrms[4][11][96]; |
15 |
float calbase[4][11][6]; |
float calbase[4][11][6]; |
16 |
float calvar[4][11][6]; |
float calvar[4][11][6]; |
17 |
float calpuls[4][11][96]; |
//float calpuls[4][11][96]; |
18 |
} calib_; |
} calib_; |
19 |
//external declaration of the Fortran function |
//external declaration of the Fortran function |
20 |
void calpedestal_(char*, long int*, int*); |
void calpedestal_(char*, long int*, int*); |
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.3 2004/12/09 13:17:24 kusanagi Exp $\n"; |
"$Header: /opt/cvsmanager/yoda/techmodel/CalibCalPedReader.cpp,v 5.1 2005/11/30 13:39:58 Maurizio Nagni Exp $\n"; |
46 |
} |
} |
47 |
|
|
48 |
/** |
/** |
74 |
} |
} |
75 |
oss.str(""); |
oss.str(""); |
76 |
oss << "Fortran77 function calpedestal error code = " << ERROR |
oss << "Fortran77 function calpedestal error code = " << ERROR |
77 |
<< "\n" <<errmsg; |
<< " " << errmsg; |
78 |
logger->warn(oss.str().c_str()); |
logger->warn(oss.str().c_str()); |
79 |
} else { |
} //else { |
80 |
//Store the unpacked data |
//Store the unpacked data |
81 |
calibCalPed->iev = calib_.iev; |
calibCalPed->iev = calib_.iev; |
82 |
memcpy(calibCalPed->cstwerr, calib_.cstwerr, sizeof(calibCalPed->cstwerr)); |
memcpy(calibCalPed->cstwerr, calib_.cstwerr, sizeof(calibCalPed->cstwerr)); |
88 |
float tempCalrms[96][11][4]; |
float tempCalrms[96][11][4]; |
89 |
float tempCalbase[6][11][4]; |
float tempCalbase[6][11][4]; |
90 |
float tempCalvar[6][11][4]; |
float tempCalvar[6][11][4]; |
91 |
float tempCalpuls[96][11][4]; |
//float tempCalpuls[96][11][4]; |
92 |
|
|
93 |
memcpy(tempCalped, calib_.calped, sizeof(tempCalped)); |
memcpy(tempCalped, calib_.calped, sizeof(tempCalped)); |
94 |
memcpy(tempCalgood, calib_.calgood, sizeof(tempCalgood)); |
memcpy(tempCalgood, calib_.calgood, sizeof(tempCalgood)); |
96 |
memcpy(tempCalrms, calib_.calrms, sizeof(tempCalrms)); |
memcpy(tempCalrms, calib_.calrms, sizeof(tempCalrms)); |
97 |
memcpy(tempCalbase, calib_.calbase, sizeof(tempCalbase)); |
memcpy(tempCalbase, calib_.calbase, sizeof(tempCalbase)); |
98 |
memcpy(tempCalvar, calib_.calvar, sizeof(tempCalvar)); |
memcpy(tempCalvar, calib_.calvar, sizeof(tempCalvar)); |
99 |
memcpy(tempCalpuls, calib_.calpuls, sizeof(tempCalpuls)); |
//memcpy(tempCalpuls, calib_.calpuls, sizeof(tempCalpuls)); |
100 |
|
|
101 |
for (int i = 0; i < 4; i++){ |
for (int i = 0; i < 4; i++){ |
102 |
for (int j = 0; j <11; j++){ |
for (int j = 0; j <11; j++){ |
104 |
calibCalPed->calped[i][j][z] = tempCalped[z][j][i]; |
calibCalPed->calped[i][j][z] = tempCalped[z][j][i]; |
105 |
calibCalPed->calgood[i][j][z] = tempCalgood[z][j][i]; |
calibCalPed->calgood[i][j][z] = tempCalgood[z][j][i]; |
106 |
calibCalPed->calrms[i][j][z] = tempCalrms[z][j][i]; |
calibCalPed->calrms[i][j][z] = tempCalrms[z][j][i]; |
107 |
calibCalPed->calpuls[i][j][z] = tempCalpuls[z][j][i]; |
//calibCalPed->calpuls[i][j][z] = tempCalpuls[z][j][i]; |
108 |
} |
} |
109 |
} |
} |
110 |
} |
} |
119 |
} |
} |
120 |
} |
} |
121 |
//----------------------------------------------------------------------------------------- |
//----------------------------------------------------------------------------------------- |
122 |
} |
//} |
123 |
} |
} |
124 |
|
|
125 |
|
|