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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Jul 6 12:20:23 2004 UTC (20 years, 5 months ago) by kusanagi
Branch: MAIN
File MIME type: text/plain
Initial revision

1 kusanagi 1.1 /** @file
2     * $Source: /home/cvspamela/yoda/event/mcmd/McmdRecord.h,v $
3     * $Id: McmdRecord.h,v 1.8 2004/04/22 15:51:03 nagni Exp $
4     * $Author: nagni $
5     *
6     * Header file for the McmdRecord class.
7     */
8     #ifndef MCMD_RECORD_H
9     #define MCMD_RECORD_H
10    
11     #define UINT32 unsigned int
12     #define UINT16 unsigned short
13     #define BYTE unsigned char
14    
15     #include <TObject.h>
16    
17    
18     namespace pamela {
19     /**
20     * McmdRecord data Wrapper
21     */
22     class McmdRecord: public TObject {
23    
24     public:
25     /**
26     * Get the run name according to a certain run number.
27     * @param run Run number.
28     * @return a string with the run name.
29     */
30     UINT32 MCMD_RECORD_OBT;
31     int Mcmd_Block_crc_ok;
32    
33     UINT16 SeqID;
34     BYTE Tbit;
35     BYTE ID1;
36     UINT16 McmdLength;
37     UINT32 TimeTag;
38     BYTE* McmdData;
39     BYTE endID;
40    
41    
42     McmdRecord(void);
43    
44     void setMcmdData(const BYTE val[]) {
45     if (McmdLength > 0){
46     McmdData = new BYTE[McmdLength];
47     memcpy(McmdData, val, McmdLength);
48     }
49     };
50    
51     ClassDef(McmdRecord, 1)
52     };
53     }
54    
55     #endif /* MCMD_RECORD_H */
56    

  ViewVC Help
Powered by ViewVC 1.1.23