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 3.0 2005/03/04 15:54:11 kusanagi Exp $ |
* $Id: S4Event.h,v 4.5 2005/08/29 08:27:35 kusanagi Exp $ |
4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Header file for the raw anticoincidence events |
* Header file for the raw anticoincidence events |
8 |
#ifndef S4_EVENT_H |
#ifndef S4_EVENT_H |
9 |
#define S4_EVENT_H |
#define S4_EVENT_H |
10 |
|
|
11 |
#include "event/SubPacket.h" |
#include "../../SubPacket.h" |
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; |
UINT8 unpackError; |
59 |
|
|
60 |
S4Event(void); |
S4Event(void); |