/[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 3.0 by kusanagi, Fri Mar 4 15:54:11 2005 UTC revision 5.1 by kusanagi, Wed Nov 30 13:39:58 2005 UTC
# Line 14  extern "C" { Line 14  extern "C" {
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*);
# Line 42  CalibCalPedReader::CalibCalPedReader(voi Line 42  CalibCalPedReader::CalibCalPedReader(voi
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.5 2005/02/09 22:20:48 kusanagi Exp $\n";      "$Header: /home/cvsmanager/yoda/techmodel/CalibCalPedReader.cpp,v 5.0 2005/08/29 09:46:13 kusanagi Exp $\n";
46  }  }
47    
48  /**  /**
# Line 76  void CalibCalPedReader::RunEvent(int Eve Line 76  void CalibCalPedReader::RunEvent(int Eve
76          oss << "Fortran77 function calpedestal error code = " << ERROR          oss << "Fortran77 function calpedestal error code = " << ERROR
77              <<  " " << 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));
# Line 88  void CalibCalPedReader::RunEvent(int Eve Line 88  void CalibCalPedReader::RunEvent(int Eve
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));
# Line 96  void CalibCalPedReader::RunEvent(int Eve Line 96  void CalibCalPedReader::RunEvent(int Eve
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++){
# Line 104  void CalibCalPedReader::RunEvent(int Eve Line 104  void CalibCalPedReader::RunEvent(int Eve
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          }          }

Legend:
Removed from v.3.0  
changed lines
  Added in v.5.1

  ViewVC Help
Powered by ViewVC 1.1.23