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

Diff of /yoda/techmodel/CalibCalPulse1Reader.cpp

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

revision 2.1 by kusanagi, Fri Dec 3 22:08:00 2004 UTC revision 4.4 by kusanagi, Sat May 28 10:44:10 2005 UTC
# Line 45  CalibCalPulse1Reader::CalibCalPulse1Read Line 45  CalibCalPulse1Reader::CalibCalPulse1Read
45   */   */
46  std::string CalibCalPulse1Reader::GetVersionInfo(void) const {  std::string CalibCalPulse1Reader::GetVersionInfo(void) const {
47    return    return
48      "$Header: /home/cvsmanager/yoda/techmodel/CalibCalPulse1Reader.cpp,v 2.0 2004/09/21 20:50:54 kusanagi Exp $\n";      "$Header: /home/cvsmanager/yoda/techmodel/CalibCalPulse1Reader.cpp,v 4.1 2005/05/28 08:00:08 kusanagi Exp $\n";
49  }  }
50    
51  /**  /**
# Line 69  void CalibCalPulse1Reader::RunEvent(int Line 69  void CalibCalPulse1Reader::RunEvent(int
69    
70      calpulse_(packetData, &dataLength, &ERROR);      calpulse_(packetData, &dataLength, &ERROR);
71            
72        calibCalPulse1->unpackError = ERROR;
73      oss.str("");          oss.str("");    
74      if (ERROR != 0) {      if (ERROR != 0) {
75          char *errmsg;          char *errmsg;
# Line 76  void CalibCalPulse1Reader::RunEvent(int Line 77  void CalibCalPulse1Reader::RunEvent(int
77              case 1: errmsg = "CALORIMETER NOT FOUND";              case 1: errmsg = "CALORIMETER NOT FOUND";
78          }          }
79          oss << "Fortran77 function calpulse error code = " << ERROR          oss << "Fortran77 function calpulse error code = " << ERROR
80              <<  "\n" << errmsg;              <<  " " << errmsg;
81          logger->warn(oss.str().c_str());          logger->warn(oss.str().c_str());
82      } else {      } //else {
83        //Store the unpacked data        //Store the unpacked data
84          calibCalPulse1->iev = calpul_.iev;          calibCalPulse1->iev = calpul_.iev;
85          memcpy(calibCalPulse1->pstwerr, calpul_.pstwerr, sizeof(calibCalPulse1->pstwerr));          memcpy(calibCalPulse1->pstwerr, calpul_.pstwerr, sizeof(calibCalPulse1->pstwerr));
# Line 94  void CalibCalPulse1Reader::RunEvent(int Line 95  void CalibCalPulse1Reader::RunEvent(int
95              }              }
96          }          }
97     //-----------------------------------------------------------------------------------------     //-----------------------------------------------------------------------------------------
98      }      //}
99  }  }
100    

Legend:
Removed from v.2.1  
changed lines
  Added in v.4.4

  ViewVC Help
Powered by ViewVC 1.1.23