/[PAMELA software]/yoda/techmodel/CalibCalReader.cpp
ViewVC logotype

Diff of /yoda/techmodel/CalibCalReader.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by kusanagi, Tue Jul 6 12:20:23 2004 UTC revision 1.2 by kusanagi, Thu Jul 8 12:31:42 2004 UTC
# Line 1  Line 1 
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:
# Line 14  Line 14 
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"
# Line 45  CalibCalReader::CalibCalReader(void): Line 45  CalibCalReader::CalibCalReader(void):
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  /**  /**
# Line 77  void CalibCalReader::RunEvent(int EventN Line 77  void CalibCalReader::RunEvent(int EventN
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;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23