/[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 4.0 by kusanagi, Sun Mar 6 04:33:02 2005 UTC revision 6.0 by kusanagi, Tue Feb 7 17:11:09 2006 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 3.0 2005/03/04 15:54:11 kusanagi Exp $\n";      "$Header: /home/cvsmanager/yoda/techmodel/CalibCalPedReader.cpp,v 5.2 2006/02/04 12:37:44 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          }          }
# Line 119  void CalibCalPedReader::RunEvent(int Eve Line 119  void CalibCalPedReader::RunEvent(int Eve
119              }              }
120          }          }
121      //-----------------------------------------------------------------------------------------      //-----------------------------------------------------------------------------------------
122      }      //}
123  }  }
124    
125    

Legend:
Removed from v.4.0  
changed lines
  Added in v.6.0

  ViewVC Help
Powered by ViewVC 1.1.23