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

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

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

revision 1.1.1.1 by mocchiut, Tue Sep 23 07:20:26 2008 UTC revision 1.3 by pam-fi, Wed Aug 5 18:48:38 2009 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /repository/PamOffLineSW/techmodel/Calib2_Ac2Reader.cpp,v $   * $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/Calib2_Ac2Reader.cpp,v $
3   * $Id: Calib2_Ac2Reader.cpp,v 1.4 2008-03-04 18:09:30 messineo Exp $   * $Id: Calib2_Ac2Reader.cpp,v 1.2 2009-08-04 13:58:12 mocchiut Exp $
4   * $Author: messineo $   * $Author: mocchiut $
5   *   *
6   * Implementation of the Calib2_Ac2Reader class.   * Implementation of the Calib2_Ac2Reader class.
7   */   */
# Line 9  Line 9 
9  extern "C" {  extern "C" {
10      #include "CRC.h"      #include "CRC.h"
11      #include "forroutines/anticounter/AC.h"      #include "forroutines/anticounter/AC.h"
12      extern int ACcalib(int length, unsigned char* calibpointer, struct calibstruct *calibpointer);      extern int ACcalib(int length, unsigned char* datapointer, struct calibstruct *calibpointer);
13  }  }
14    
15  #include "ReaderAlgorithms.h"  #include "ReaderAlgorithms.h"
# Line 29  Calib2_Ac2Reader::Calib2_Ac2Reader(void) Line 29  Calib2_Ac2Reader::Calib2_Ac2Reader(void)
29   * Get a string with the version info of the algorithm.   * Get a string with the version info of the algorithm.
30   */   */
31  std::string Calib2_Ac2Reader::GetVersionInfo(void) const {  std::string Calib2_Ac2Reader::GetVersionInfo(void) const {
32    return "$Header: /repository/PamOffLineSW/techmodel/Calib2_Ac2Reader.cpp,v 1.4 2008-03-04 18:09:30 messineo Exp $\n";    return "$Header: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/Calib2_Ac2Reader.cpp,v 1.2 2009-08-04 13:58:12 mocchiut Exp $\n";
33  }  }
34    
35  /**  /**
# Line 44  void Calib2_Ac2Reader::Init(PamelaRun *r Line 44  void Calib2_Ac2Reader::Init(PamelaRun *r
44   * Unpack the CalibAc event   * Unpack the CalibAc event
45   */   */
46  void Calib2_Ac2Reader::PKT_RunEvent(char* subData, long int dataLength) throw (Exception){  void Calib2_Ac2Reader::PKT_RunEvent(char* subData, long int dataLength) throw (Exception){
47      struct calibstruct output = {0};    struct calibstruct output;// = {0};
48      calib2_Ac2->ERROR = ACcalib(dataLength, (unsigned char*)subData, &output);      calib2_Ac2->ERROR = ACcalib(dataLength, (unsigned char*)subData, &output);
49      memcpy(calib2_Ac2->header,     output.header,     sizeof(output.header));      memcpy(calib2_Ac2->header,     output.header,     sizeof(output.header));
50      memcpy(calib2_Ac2->status,     output.status,     sizeof(output.status));      memcpy(calib2_Ac2->status,     output.status,     sizeof(output.status));

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23