/[PAMELA software]/chewbacca/PamOffLineSW/techmodel/Calib1_Ac1Reader.cpp
ViewVC logotype

Diff of /chewbacca/PamOffLineSW/techmodel/Calib1_Ac1Reader.cpp

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

revision 1.1 by mocchiut, Tue Sep 23 07:20:25 2008 UTC revision 1.2 by mocchiut, Tue Aug 4 13:58:10 2009 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /repository/PamOffLineSW/techmodel/Calib1_Ac1Reader.cpp,v $   * $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/Calib1_Ac1Reader.cpp,v $
3   * $Id: Calib1_Ac1Reader.cpp,v 1.5 2008-03-04 18:09:31 messineo Exp $   * $Id: Calib1_Ac1Reader.cpp,v 1.1.1.1 2008/09/23 07:20:25 mocchiut Exp $
4   * $Author: messineo $   * $Author: mocchiut $
5   *   *
6   * Implementation of the Calib1_Ac1Reader class.   * Implementation of the Calib1_Ac1Reader class.
7   */   */
# Line 33  Calib1_Ac1Reader::Calib1_Ac1Reader(void) Line 33  Calib1_Ac1Reader::Calib1_Ac1Reader(void)
33   * Get a string with the version info of the algorithm.   * Get a string with the version info of the algorithm.
34   */   */
35  std::string Calib1_Ac1Reader::GetVersionInfo(void) const {  std::string Calib1_Ac1Reader::GetVersionInfo(void) const {
36    return "$Header: /repository/PamOffLineSW/techmodel/Calib1_Ac1Reader.cpp,v 1.5 2008-03-04 18:09:31 messineo Exp $\n";    return "$Header: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/Calib1_Ac1Reader.cpp,v 1.1.1.1 2008/09/23 07:20:25 mocchiut Exp $\n";
37  }  }
38    
39  /**  /**
# Line 48  void Calib1_Ac1Reader::Init(PamelaRun *r Line 48  void Calib1_Ac1Reader::Init(PamelaRun *r
48   * Unpack the Calib1_Ac1Reader event from an input file.   * Unpack the Calib1_Ac1Reader event from an input file.
49   */   */
50  void Calib1_Ac1Reader::PKT_RunEvent(char* subData, long int dataLength) throw (Exception){        void Calib1_Ac1Reader::PKT_RunEvent(char* subData, long int dataLength) throw (Exception){      
51      struct calibstruct output = {0};    struct calibstruct output;// = {0};
52      calib1_Ac1->ERROR = ACcalib(dataLength, (unsigned char*)subData, &output);      calib1_Ac1->ERROR = ACcalib(dataLength, (unsigned char*)subData, &output);
53      memcpy(calib1_Ac1->header,     output.header,     sizeof(output.header));      memcpy(calib1_Ac1->header,     output.header,     sizeof(output.header));
54      memcpy(calib1_Ac1->status,     output.status,     sizeof(output.status));      memcpy(calib1_Ac1->status,     output.status,     sizeof(output.status));

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23