1 |
/** @file |
/** @file |
2 |
* $Source: /home/cvsmanager/yoda/event/physics/S4/S4Event.h,v $ |
* $Source: /home/cvsmanager/yoda/event/physics/S4/S4Event.h,v $ |
3 |
* $Id: S4Event.h,v 1.2 2004/12/03 22:04:33 kusanagi Exp $ |
* $Id: S4Event.h,v 4.0 2005/03/06 04:33:01 kusanagi Exp $ |
4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Header file for the raw anticoincidence events |
* Header file for the raw anticoincidence events |
12 |
|
|
13 |
namespace pamela { |
namespace pamela { |
14 |
/** |
/** |
15 |
* Namespace for all code related to the anticoincidence unit. |
* Namespace for all code related to the S4 unit. |
16 |
*/ |
*/ |
17 |
namespace S4 { |
namespace S4 { |
18 |
/** |
/** |
19 |
* Techmodel S4 subpacket |
* S4 subpacket data wrapper. |
20 |
*/ |
*/ |
21 |
class S4Event: public pamela::SubPacket { |
class S4Event: public pamela::SubPacket { |
22 |
private: |
private: |
23 |
|
|
24 |
public: |
public: |
25 |
|
|
26 |
|
/** |
27 |
|
* The register status. |
28 |
|
*/ |
29 |
UINT8 S4_REG_STATUS; |
UINT8 S4_REG_STATUS; |
30 |
|
|
31 |
|
/** |
32 |
|
* The data. |
33 |
|
*/ |
34 |
UINT16 S4_DATA; |
UINT16 S4_DATA; |
35 |
|
|
36 |
|
/** |
37 |
|
* The Command number. |
38 |
|
*/ |
39 |
UINT8 S4_CMD_NUM; |
UINT8 S4_CMD_NUM; |
40 |
|
|
41 |
|
/** |
42 |
|
* The response length. |
43 |
|
*/ |
44 |
UINT16 S4_RESP_LENGHT; |
UINT16 S4_RESP_LENGHT; |
45 |
|
|
46 |
|
/** |
47 |
|
* The overall crc. |
48 |
|
*/ |
49 |
UINT8 S4_OVERALL_CHKCODE; |
UINT8 S4_OVERALL_CHKCODE; |
50 |
|
|
51 |
|
/** |
52 |
|
* The data validity flag. |
53 |
|
* |
54 |
|
* Description: <BR> |
55 |
|
* 1: S4 data NOT found. <BR> |
56 |
|
* 0: S4 data ok. <BR> |
57 |
|
*/ |
58 |
|
UINT8 unpackError; |
59 |
|
|
60 |
S4Event(void); |
S4Event(void); |
61 |
~S4Event(void); |
~S4Event(void); |
62 |
|
|
63 |
ClassDef(S4Event, 1) |
ClassDef(S4Event, 2) |
64 |
}; |
}; |
65 |
} |
} |
66 |
} |
} |