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

Diff of /yoda/techmodel/CalibCalPedReader.cpp

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

revision 1.1 by kusanagi, Tue Jul 6 14:07:27 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/cvsmanager/yoda/techmodel/CalibCalPedReader.cpp,v $   * $Source: /home/cvsmanager/yoda/techmodel/CalibCalPedReader.cpp,v $
3   * $Id: CalibCalReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $   * $Id: CalibCalPedReader.cpp,v 1.1 2004/07/06 14:07:27 kusanagi Exp $
4   * $Author: kusanagi $   * $Author: kusanagi $
5   *   *
6   * Implementation of the LogReader class.   * Implementation of the LogReader class.
# 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"    
19        //Struct per il passaggio di dati da e verso la chiamata fortran
20        extern struct {
21            int IEV2;
22            int calped[96][11][4];
23            int calgood[96][11][4];
24            int calthr[96][11][4];
25            int calrms[96][11][4];
26            int calbase[96][11][4];
27            int calvar[96][11][4];
28            int calpuls[96][11][4];
29        } calib_;
30        
31      //external declaration of the Fortran function      //external declaration of the Fortran function
32      void calpedestal_(short[], int*, float[96][11][4], float[][11][4],  //    void calpedestal_(short[], int, int*);
33                           float[][11][4], float[][11][4], float[][11][4]);  }
 }*/  
34    
35  #include "ReaderAlgorithms.h"  #include "ReaderAlgorithms.h"
36  #include "event/CalibCalPedEvent.h"  #include "event/CalibCalPedEvent.h"
# Line 45  CalibCalPedReader::CalibCalPedReader(voi Line 56  CalibCalPedReader::CalibCalPedReader(voi
56   */   */
57  std::string CalibCalPedReader::GetVersionInfo(void) const {  std::string CalibCalPedReader::GetVersionInfo(void) const {
58    return    return
59      "$Header: /home/cvsmanager/yoda/techmodel/CalibCalPedReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $\n";      "$Header: /home/cvsmanager/yoda/techmodel/CalibCalPedReader.cpp,v 1.1 2004/07/06 14:07:27 kusanagi Exp $\n";
60  }  }
61    
62  /**  /**
# Line 54  std::string CalibCalPedReader::GetVersio Line 65  std::string CalibCalPedReader::GetVersio
65   */   */
66  void CalibCalPedReader::Init(PamelaRun *run) {  void CalibCalPedReader::Init(PamelaRun *run) {
67    SetInputStream(run);    SetInputStream(run);
68    run->WriteSubPacket(this, &CalibCal, CalibCal->Class());    run->WriteSubPacket(this, &CalibCalPed, CalibCalPed->Class());
69  }  }
70    
71  /**  /**
# Line 77  void CalibCalPedReader::RunEvent(int Eve Line 88  void CalibCalPedReader::RunEvent(int Eve
88      InputFile->seekg((long int)2, std::ios::cur);      InputFile->seekg((long int)2, std::ios::cur);
89                                
90      //Chiamata alla funzione fortran per la lettura dei piedistalli      //Chiamata alla funzione fortran per la lettura dei piedistalli
91      //calpedestal_((short*)subData, &ERROR, CalibCal->cal_ped, CalibCal->cal_good, CalibCal->cal_thr, CalibCal->cal_base, CalibCal->cal_var);    //  calpedestal_((short*)subData, dataLength, &ERROR);
92          cat <<  log4cpp::Priority::ERROR          cat <<  log4cpp::Priority::ERROR
93              <<  "Fortran77 function calpedestal error code = " << ERROR              <<  "Fortran77 function calpedestal error code = " << ERROR
94              <<  "\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