/[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 2.5 by kusanagi, Wed Feb 9 22:20:48 2005 UTC revision 5.0 by kusanagi, Mon Aug 29 09:46:13 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.4 2005/01/13 14:48:04 kusanagi Exp $\n";      "$Header: /home/cvsmanager/yoda/techmodel/CalibCalPedReader.cpp,v 4.4 2005/05/28 10:44:10 kusanagi Exp $\n";
46  }  }
47    
48  /**  /**
# 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.2.5  
changed lines
  Added in v.5.0

  ViewVC Help
Powered by ViewVC 1.1.23