/[PAMELA software]/yoda/event/mcmd/McmdRecord.h
ViewVC logotype

Diff of /yoda/event/mcmd/McmdRecord.h

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

revision 1.2 by kusanagi, Thu Aug 26 08:19:01 2004 UTC revision 4.1 by kusanagi, Sat May 7 08:48:52 2005 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /home/cvsmanager/yoda/event/mcmd/McmdRecord.h,v $   * $Source: /home/cvsmanager/yoda/event/mcmd/McmdRecord.h,v $
3   * $Id: McmdRecord.h,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $   * $Id: McmdRecord.h,v 4.0 2005/03/06 04:33:01 kusanagi Exp $
4   * $Author: kusanagi $   * $Author: kusanagi $
5   *   *
6   * Header file for the McmdRecord class.   * Header file for the McmdRecord class.
# Line 8  Line 8 
8  #ifndef MCMD_RECORD_H  #ifndef MCMD_RECORD_H
9  #define MCMD_RECORD_H  #define MCMD_RECORD_H
10    
11  #define UINT32 unsigned int  #include "event/SubPacket.h"
 #define UINT16 unsigned short  
 #define BYTE   unsigned char  
   
 #include <TObject.h>  
12  #include <TArrayC.h>  #include <TArrayC.h>
13    
   
14  namespace pamela {  namespace pamela {
15    /**    /**
16     * McmdRecord data Wrapper     * McmdRecord data Wrapper
17       *
18       *
19       * PAMELA CPU software collect several pamela::McmdRecord(s) writing
20       * them on the MassMemory as a unique packet.
21     */     */
22    class McmdRecord: public TObject {    class McmdRecord: public TObject {
23    
24    public:    public:
25      /**      /**
26       * Get the run name according to a certain run number.       * The On-Board-Time of the Record.
      * @param run Run number.  
      * @return a string with the run name.  
27       */       */
28      UINT32 MCMD_RECORD_OBT;      UINT32 MCMD_RECORD_OBT;
     int  Mcmd_Block_crc_ok;  
29            
30        /**
31         * The Mcmd crc result.
32         *
33         * It specifies if the  Mcmd was transmitted correctly: <br>
34         * 0 = Mcmd correctly transmitted <br>
35         * 1 = Mcmd  not correctly transmitted
36         */
37        int  Mcmd_Block_crc_ok;
38    
39        /**
40         * The Sequential ID of the MCMD.
41         */
42      UINT16         SeqID;      UINT16         SeqID;
43      BYTE           Tbit;  
44      BYTE           ID1;      /**
45         * Identify if the Mcmd is a Tagged one or not.
46         */
47        UINT8          Tbit;
48    
49        /**
50         * The MCMD identifier.
51         */
52        UINT8          ID1;
53    
54        /**
55         * The Mcmd length.
56         */
57      UINT16         McmdLength;      UINT16         McmdLength;
58    
59        /**
60         * The On-Board-Time for start the Mcmd if it is TimeTagged.
61         */
62      UINT32         TimeTag;      UINT32         TimeTag;
63    
64        /**
65         * An array of chars containing the Mcmd data area.
66         */
67      TArrayC       *McmdData;      TArrayC       *McmdData;
68      BYTE           endID;  
69        /**
70         * Modulo 256 sum of all bytes except the endID
71         */
72        UINT8          endID;
73    
74    
75      McmdRecord(void);      McmdRecord(void);

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

  ViewVC Help
Powered by ViewVC 1.1.23