1 |
/** @file |
2 |
* $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 $ |
4 |
* $Author: kusanagi $ |
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 |
#include <TArrayC.h> |
17 |
|
18 |
|
19 |
namespace pamela { |
20 |
/** |
21 |
* McmdRecord data Wrapper |
22 |
*/ |
23 |
class McmdRecord: public TObject { |
24 |
|
25 |
public: |
26 |
/** |
27 |
* Get the run name according to a certain run number. |
28 |
* @param run Run number. |
29 |
* @return a string with the run name. |
30 |
*/ |
31 |
UINT32 MCMD_RECORD_OBT; |
32 |
int Mcmd_Block_crc_ok; |
33 |
|
34 |
UINT16 SeqID; |
35 |
BYTE Tbit; |
36 |
BYTE ID1; |
37 |
UINT16 McmdLength; |
38 |
UINT32 TimeTag; |
39 |
TArrayC *McmdData; |
40 |
BYTE endID; |
41 |
|
42 |
|
43 |
McmdRecord(void); |
44 |
|
45 |
/*void setMcmdData(const BYTE val[]) { |
46 |
if (McmdLength > 0){ |
47 |
McmdData = new BYTE[McmdLength]; |
48 |
memcpy(McmdData, val, McmdLength); |
49 |
} |
50 |
};*/ |
51 |
|
52 |
ClassDef(McmdRecord, 1) |
53 |
}; |
54 |
} |
55 |
|
56 |
#endif /* MCMD_RECORD_H */ |
57 |
|