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 |
|
|
|