1 |
/** @file |
/** @file |
2 |
* $Source: /home/cvspamela/yoda/event/mcmd/McmdRecord.h,v $ |
* $Source: /home/cvsmanager/yoda/event/mcmd/McmdRecord.h,v $ |
3 |
* $Id: McmdRecord.h,v 1.8 2004/04/22 15:51:03 nagni Exp $ |
* $Id: McmdRecord.h,v 2.0 2004/09/21 20:50:13 kusanagi Exp $ |
4 |
* $Author: nagni $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Header file for the McmdRecord class. |
* Header file for the McmdRecord class. |
7 |
*/ |
*/ |
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" |
12 |
#define UINT16 unsigned short |
#include <TArrayC.h> |
|
#define BYTE unsigned char |
|
|
|
|
|
#include <TObject.h> |
|
|
|
|
13 |
|
|
14 |
namespace pamela { |
namespace pamela { |
15 |
/** |
/** |
31 |
BYTE ID1; |
BYTE ID1; |
32 |
UINT16 McmdLength; |
UINT16 McmdLength; |
33 |
UINT32 TimeTag; |
UINT32 TimeTag; |
34 |
BYTE* McmdData; |
TArrayC *McmdData; |
35 |
BYTE endID; |
BYTE endID; |
36 |
|
|
37 |
|
|
38 |
McmdRecord(void); |
McmdRecord(void); |
39 |
|
|
40 |
void setMcmdData(const BYTE val[]) { |
/*void setMcmdData(const BYTE val[]) { |
41 |
if (McmdLength > 0){ |
if (McmdLength > 0){ |
42 |
McmdData = new BYTE[McmdLength]; |
McmdData = new BYTE[McmdLength]; |
43 |
memcpy(McmdData, val, McmdLength); |
memcpy(McmdData, val, McmdLength); |
44 |
} |
} |
45 |
}; |
};*/ |
46 |
|
|
47 |
ClassDef(McmdRecord, 1) |
ClassDef(McmdRecord, 1) |
48 |
}; |
}; |