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

Diff of /yoda/techmodel/CalibCalPulse2Reader.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 5.0 by kusanagi, Mon Aug 29 09:46:13 2005 UTC
# Line 45  CalibCalPulse2Reader::CalibCalPulse2Read Line 45  CalibCalPulse2Reader::CalibCalPulse2Read
45   */   */
46  std::string CalibCalPulse2Reader::GetVersionInfo(void) const {  std::string CalibCalPulse2Reader::GetVersionInfo(void) const {
47    return    return
48      "$Header: /home/cvsmanager/yoda/techmodel/CalibCalPulse2Reader.cpp,v 2.0 2004/09/21 20:50:54 kusanagi Exp $\n";      "$Header: /home/cvsmanager/yoda/techmodel/CalibCalPulse2Reader.cpp,v 4.4 2005/05/28 10:44:11 kusanagi Exp $\n";
49  }  }
50    
51  /**  /**
# Line 66  void CalibCalPulse2Reader::RunEvent(int Line 66  void CalibCalPulse2Reader::RunEvent(int
66      char        packetData[dataLength];      char        packetData[dataLength];
67      int         ERROR;      int         ERROR;
68      InputFile->read(packetData, sizeof(packetData));      InputFile->read(packetData, sizeof(packetData));
69    
70      calpulse_(packetData, &dataLength, &ERROR);      calpulse_(packetData, &dataLength, &ERROR);
71    
72        calibCalPulse2->unpackError = ERROR;
73    
74      if (ERROR != 0) {      if (ERROR != 0) {
75          char *errmsg;          char *errmsg;
76          switch (ERROR){          switch (ERROR){
# Line 74  void CalibCalPulse2Reader::RunEvent(int Line 78  void CalibCalPulse2Reader::RunEvent(int
78          }          }
79          oss.str("");          oss.str("");
80          oss << "Fortran77 function calpulse error code = " << ERROR          oss << "Fortran77 function calpulse error code = " << ERROR
81              <<  "\n" <<errmsg;              <<  " " << errmsg;
82          logger->warn(oss.str().c_str());          logger->warn(oss.str().c_str());
83      } else {      } //else {
84         //Store the unpacked data         //Store the unpacked data
85          calibCalPulse2->iev = calpul_.iev;          calibCalPulse2->iev = calpul_.iev;
86          memcpy(calibCalPulse2->pstwerr, calpul_.pstwerr, sizeof(calibCalPulse2->pstwerr));          memcpy(calibCalPulse2->pstwerr, calpul_.pstwerr, sizeof(calibCalPulse2->pstwerr));
# Line 92  void CalibCalPulse2Reader::RunEvent(int Line 96  void CalibCalPulse2Reader::RunEvent(int
96              }              }
97          }          }
98     //-----------------------------------------------------------------------------------------     //-----------------------------------------------------------------------------------------
99      }      //}
100  }  }
101    

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

  ViewVC Help
Powered by ViewVC 1.1.23