ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mizar.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file mizar.h
1 #ifndef __MIZAR_H__
2 #define __MIZAR_H__
3 
4 typedef struct sdm{
5  int sdmlength;
6  /* start of mizar data structures */
7  unsigned int head0;
8  /* conversion 1 information */
9  unsigned int head1_tag;
10  unsigned int head1;
11 
12  struct {
13  struct {
14  unsigned int high_gain[4];
15  unsigned int low_gain[4];
16  } chip[3];
17  } conv1_sm[6];
18  /* conversion 2 information */
19  unsigned int head2_tag;
20  unsigned int head2;
21  struct {
22  struct {
23  unsigned int tac[4];
24  unsigned int high_gain[4];
25  unsigned int low_gain[4];
26  } chip[3];
27  } conv2_sm[6];
28 } *sdm_ptr;
29 
30 typedef struct miz_subdef{
32  int sub_id;
33  int sub_type;
35  /* end of header info*/
36  int status;
37  int retries;
38  int arr[99999];
39 } *miz_sub;
40 
41 typedef struct miz_irdgdef{
42  struct {
43  int conv1_high[144];
44  int conv1_low[144];
45  int conv2_high[144];
46  int conv2_low[144];
47  int tac[144];
48  int trigger[6];
50  int c1_cell;
51  int c2_cell;
52  int opcode1;
53  int opcode2;
54  int dspmap;
55  int board_adr;
56  int ser_ret;
57  int words;
58  int byte_err;
59  int dummy[14]; /* to round up to 750 words */
60  } out[11];
61 } *miz_irdg;
62 
63 typedef struct miz_indgdef{
64  struct {
65  int high[144];
66  int low[144];
67  int tac[144];
68  int trigger[6];
70  int c1_cell;
71  int c2_cell;
72  int board_adr;
73  int ser_ret;
74  int socket;
75  int port;
76  int dsp;
77  int words;
78  int dummy[3]; /* to round up to 450 words */
79  } out[11];
80 } *miz_indg;
81 
82 typedef struct sdm_c_blockdef{
83  int sdmlength;
84  unsigned int conv1_info;
85  unsigned int conv2_info;
86  unsigned int dspmap;
87  unsigned int trigger[2];
88  int array[999999];
89 } *sdm_c_block;
90 
91 
92 #endif /* __MIZAR_H__ */