1 |
/** @file |
/** @file |
2 |
* $Source: /home/cvspamela/yoda/techmodel/CalibCalReader.cpp,v $ |
* $Source: /home/cvsmanager/yoda/techmodel/CalibCalReader.cpp,v $ |
3 |
* $Id: CalibCalReader.cpp,v 1.1 2004/05/11 10:12:35 nagni Exp $ |
* $Id: CalibCalReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $ |
4 |
* $Author: nagni $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Implementation of the LogReader class. |
* Implementation of the LogReader class. |
7 |
* ToBeDone: |
* ToBeDone: |
14 |
#include <log4cpp/Category.hh> |
#include <log4cpp/Category.hh> |
15 |
#include <fstream> |
#include <fstream> |
16 |
#include "stdio.h" |
#include "stdio.h" |
17 |
extern "C" { |
/*extern "C" { |
18 |
#include "CRC.h" |
#include "CRC.h" |
19 |
/* external declaration of the Fortran function */ |
// external declaration of the Fortran function |
20 |
void calpedestal_(short[], int*, float[96][11][4], float[][11][4], |
void calpedestal_(short[], int*, float[96][11][4], float[][11][4], |
21 |
float[][11][4], float[][11][4], float[][11][4]); |
float[][11][4], float[][11][4], float[][11][4]); |
22 |
} |
}*/ |
23 |
|
|
24 |
#include "ReaderAlgorithms.h" |
#include "ReaderAlgorithms.h" |
25 |
#include "event/CalibCalEvent.h" |
#include "event/CalibCalEvent.h" |
45 |
*/ |
*/ |
46 |
std::string CalibCalReader::GetVersionInfo(void) const { |
std::string CalibCalReader::GetVersionInfo(void) const { |
47 |
return |
return |
48 |
"$Header: /home/cvspamela/yoda/techmodel/CalibCalReader.cpp,v 1.1 2004/05/11 10:12:35 nagni Exp $\n"; |
"$Header: /home/cvsmanager/yoda/techmodel/CalibCalReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $\n"; |
49 |
} |
} |
50 |
|
|
51 |
/** |
/** |
77 |
InputFile->seekg((long int)2, std::ios::cur); |
InputFile->seekg((long int)2, std::ios::cur); |
78 |
|
|
79 |
//Chiamata alla funzione fortran per la lettura dei piedistalli |
//Chiamata alla funzione fortran per la lettura dei piedistalli |
80 |
calpedestal_((short*)subData, &ERROR, CalibCal->cal_ped, CalibCal->cal_good, CalibCal->cal_thr, CalibCal->cal_base, CalibCal->cal_var); |
//calpedestal_((short*)subData, &ERROR, CalibCal->cal_ped, CalibCal->cal_good, CalibCal->cal_thr, CalibCal->cal_base, CalibCal->cal_var); |
81 |
cat << log4cpp::Priority::ERROR |
cat << log4cpp::Priority::ERROR |
82 |
<< "Fortran77 function calpedestal error code = " << ERROR |
<< "Fortran77 function calpedestal error code = " << ERROR |
83 |
<< "\n " << log4cpp::CategoryStream::ENDLINE; |
<< "\n " << log4cpp::CategoryStream::ENDLINE; |