Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:46

0001 #ifndef __MIZAR_H__
0002 #define __MIZAR_H__
0003  
0004 typedef struct sdm{
0005  int sdmlength;
0006  /* start of mizar data structures */
0007  unsigned int head0;
0008  /* conversion 1 information */
0009  unsigned int head1_tag;
0010  unsigned int head1;
0011  
0012  struct {
0013      struct {
0014        unsigned int high_gain[4];
0015        unsigned int low_gain[4];
0016      } chip[3];
0017  } conv1_sm[6];
0018  /* conversion 2 information */
0019  unsigned int head2_tag;
0020  unsigned int head2;
0021  struct {
0022     struct {
0023       unsigned int tac[4];
0024       unsigned int high_gain[4];
0025       unsigned int low_gain[4];
0026     } chip[3];
0027  } conv2_sm[6];
0028 } *sdm_ptr;
0029  
0030 typedef struct miz_subdef{
0031  int sub_length;
0032  int sub_id;
0033  int sub_type;
0034  int sub_decoding;
0035  /* end of header info*/
0036  int status;
0037  int retries;
0038  int arr[99999];
0039 } *miz_sub;
0040  
0041 typedef struct miz_irdgdef{
0042   struct {
0043    int conv1_high[144];
0044    int conv1_low[144];
0045    int conv2_high[144];
0046    int conv2_low[144];
0047    int tac[144];
0048    int trigger[6];
0049    int write_cell;
0050    int c1_cell;
0051    int c2_cell;
0052    int opcode1;
0053    int opcode2;
0054    int dspmap;
0055    int board_adr;
0056    int ser_ret;
0057    int words;
0058    int byte_err;
0059    int dummy[14]; /* to round up to 750 words */
0060   } out[11];
0061 } *miz_irdg;
0062  
0063 typedef struct miz_indgdef{
0064  struct {
0065    int high[144];
0066    int low[144];
0067    int tac[144];
0068    int trigger[6];
0069    int write_cell;
0070    int c1_cell;
0071    int c2_cell;
0072    int board_adr;
0073    int ser_ret;
0074    int socket;
0075    int port;
0076    int dsp;
0077    int words;
0078    int dummy[3]; /* to round up to 450 words */
0079  } out[11];
0080 } *miz_indg;
0081  
0082 typedef struct sdm_c_blockdef{
0083   int sdmlength;
0084   unsigned int conv1_info;
0085   unsigned int conv2_info;
0086   unsigned int dspmap;
0087   unsigned int trigger[2];
0088   int array[999999];
0089 } *sdm_c_block;
0090  
0091 
0092 #endif /* __MIZAR_H__ */