GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
s_daqst.h
Go to the documentation of this file.
1 #include "typedefs.h"
2 /*
3  * N. Kurz
4  * daq status structure
5  * sorted for better byte swap /HE
6  * 30.05.2000 replaced run_start by histo_port /HE
7  * 25.10.2005 added spill, event building, and pipe status /HE
8  * 23.6.2008 DABC support /HE
9  */
10 
11 /* After allocating s_daqst, set by calling f_ut_status_ini */
12 /* ps_daqst->l_endian = 1; */
13 /* ps_daqst->l_version = n; */
14 /* ps_daqst->l_daqst_lw = sizeof(s_daqst)/4; */
15 /* ps_daqst->l_fix_lw = ((int)&c_pname[0][0]-(int)ps_daqst)/4; */
16 /* ps_daqst->l_sys__n_max_procs = SYS__N_MAX_PROCS; */
17 /* ps_daqst->l_sbs__str_len_64 = SBS__STR_LEN_64; */
18 /* ps_daqst->l_sbs__n_trg_typ = SBS__N_TRG_TYP; */
19 
20 typedef struct
21 {
22  INTU4 l_endian; /* set to 1 if sent */
23  INTU4 l_version; /* increment in f_ut_status_ini after changes */
24  INTU4 l_daqst_lw; /* sizeof(s_daqst)/4 : number of lw */
25  INTU4 l_fix_lw; /* (&c_pname-ps_daqst)/4 : fix number of longwords to read */
26  INTU4 l_sys__n_max_procs; /* maximum number of processes */
27  INTU4 l_sbs__str_len_64; /* String length of process names */
28  INTU4 l_sbs__n_trg_typ; /* maximum number of triggers */
29  INTU4 bh_daqst_initalized; /* crea_daqst */
30  INTU4 bh_acqui_started; /* util(f_ut_op_trig_mod), read_cam_slav, read_meb */
31  INTU4 bh_acqui_running; /* collector, read_cam_slav, read_meb */
32  INTU4 l_procs_run; /* processes running (index in l_pid) */
33  INTU4 bh_setup_loaded; /* util(f_ut_load_setup) */
34  INTU4 bh_set_ml_loaded; /* util(f_ut_load_ml_setup) */
35  INTU4 bh_set_mo_loaded; /* util(f_ut_load_mo_setup) */
36  INTU4 bh_cam_tab_loaded; /* read_cam_slav, read_meb) */
37  INTS4 l_free_streams; /* transport */
38  INTU4 bl_n_events; /* collector */
39  INTU4 bl_n_buffers; /* collector f_col_format */
40  INTU4 bl_n_bufstream; /* transport */
41  INTU4 bl_n_kbyte; /* transport */
42  INTU4 bl_n_evserv_events; /* event_serv f_ev_checkevt */
43  INTU4 bl_n_evserv_kbytes; /* event_serv f_ev_send */
44  INTU4 bl_n_strserv_bufs; /* stream_serv */
45  INTU4 bl_n_strserv_kbytes; /* stream_serv */
46  INTU4 bl_n_kbyte_tape; /* transport */
47  INTU4 bl_n_kbyte_file; /* transport */
48  INTU4 bl_r_events; /* rate */
49  INTU4 bl_r_buffers; /* rate */
50  INTU4 bl_r_bufstream; /* rate */
51  INTU4 bl_r_kbyte; /* rate */
52  INTU4 bl_r_kbyte_tape; /* rate (from l_block_count) */
57  INTU4 bl_flush_time; /* stream flush time */
58  INTS4 l_pathnum; /* path number of open device */
59  INTU4 l_block_length; /* current block length */
60  INTU4 l_pos_on_tape; /* current tape position in kB */
61  INTU4 l_max_tape_size; /* maximal tape length in kB */
62  INTU4 l_file_count; /* file count on volume */
63  INTU4 l_file_auto; /* file count on volume */
64  INTU4 l_file_cur; /* file count on volume */
65  INTU4 l_file_size; /* file size */
66  INTU4 l_block_count; /* buffers on file */
67  INTU4 l_block_size; /* block size (=buffer) in bytes */
68  INTU4 l_record_size; /* record size on bytes */
69  INTS4 l_open_vol; /* open mode of volume */
70  INTS4 l_open_file; /* open file flag */
71  INTS4 l_rate_on; /* for m_daq_rate */
72  INTS4 l_rate_sec; /* for m_daq_rate */
73  INTU4 bh_trig_master; /* util(f_ut_op_trig_mod) */
74  INTU4 bh_histo_enable; /* collector */
75  INTU4 bh_histo_ready; /* collector */
76  INTU4 bh_ena_evt_copy; /* collector */
77  INTU4 bl_n_trig[SBS__N_TRG_TYP]; /* Trigger counter (read_cam_slav or read_meb) */
78  INTU4 bl_n_si [SBS__N_TRG_TYP]; /* Invalid subevents (collector) */
79  INTU4 bl_n_evt [SBS__N_TRG_TYP]; /* Valid triggers (collector) */
80  INTU4 bl_r_trig[SBS__N_TRG_TYP]; /* Rate Trigger counter (read_cam_slav or read_meb) */
81  INTU4 bl_r_si [SBS__N_TRG_TYP]; /* Rate Invalid subevents (collector) */
82  INTU4 bl_r_evt [SBS__N_TRG_TYP]; /* Rate Valid triggers (collector) */
83  INTU4 bh_running[SYS__N_MAX_PROCS];/* run bit for tasks */
84  INTU4 l_pid[SYS__N_MAX_PROCS]; /* pid table */
85  INTU4 l_type[SYS__N_MAX_PROCS]; /* Type number defined in sys_def.h */
86  INTS4 l_pprio[SYS__N_MAX_PROCS]; /* daq processes priority */
87  /* f_ut_init_daq_proc, */
88  /* f_ut_clear_daqst, */
89  /* f_ut_exit_daq_proc, */
90  /* f_ut_show_acq, */
91  /* dispatch, */
92  /* prompt */
93  /* tasks */
94  INTU4 bh_pact[SYS__N_MAX_PROCS]; /* daq processes, 1 = active, as pprio */
96  INTU4 bl_histo_port; /* not used */
97  INTU4 bl_run_time; /* not used */
98  INTS4 l_irq_driv_id; /* 0=irq driver/device not installed */
100  INTU4 bh_event_serv_ready; /* event_serv, stream_serv */
101  INTU4 bl_strsrv_scale; /* stream server */
102  INTU4 bl_strsrv_sync; /* stream server */
103  INTU4 bl_strsrv_nosync; /* stream server */
104  INTU4 bl_strsrv_keep; /* stream server */
105  INTU4 bl_strsrv_nokeep; /* stream server */
106  INTU4 bl_strsrv_scaled; /* stream server */
107  INTU4 bl_evtsrv_scale; /* event server */
108  INTU4 bl_evtsrv_events; /* event server */
109  INTU4 bl_evtsrv_maxcli; /* event server */
110  INTU4 bl_evtsrv_all; /* event server */
111  INTU4 bl_esosrv_maxcli; /* esone server */
112  INTU4 bl_pipe_slots; /* sub event slots in readout pipe */
113  INTU4 bl_pipe_slots_filled; /* sub event slots used */
114  INTU4 bl_pipe_size_KB; /* readout pipe size */
115  INTU4 bl_pipe_filled_KB; /* readout pipe size occupied */
116  INTU4 bl_spill_on; /* Spill on/off */
117  INTU4 bl_delayed_eb_ena; /* Delayed event building enabled/disab.*/
118  INTU4 bl_event_build_on; /* Event building on/off */
119  INTU4 bl_dabc_enabled; /* DABC event builder mode off/on */
120  INTU4 bl_trans_ready; /* transport server ready */
121  INTU4 bl_trans_connected; /* Client to transport connected */
122  INTU4 bl_no_streams; /* Number of streams */
123  INTU4 bl_user[16]; /* for user */
124  INTU4 bl_filler[190]; /* filler */
125  INTU4 bl_no_stream_buf; /* bufs per stream */
126  INTU4 bl_rfio_connected; /* RFIO connected */
127  CHARS c_user[SBS__STR_LEN_64]; /* username */
128  CHARS c_date[SBS__STR_LEN_64]; /* date of last update (m_daq_rate) */
129  CHARS c_exprun[SBS__STR_LEN_64]; /* run name */
130  CHARS c_exper[SBS__STR_LEN_64]; /* experiment */
131  CHARS c_host[SBS__STR_LEN_64]; /* name of host */
132  CHARS c_remote[SBS__STR_LEN_64]; /* name of remote control node */
133  CHARS c_display[SBS__STR_LEN_64]; /* name of remote display node */
134  CHARS c_anal_segm_name[SBS__STR_LEN_64]; /* name of histogram segment in use */
135  /* by f_his_anal() in m_collector */
136  CHARS c_setup_name[SBS__STR_LEN_64]; /* setup table loaded */
137  CHARS c_ml_setup_name[SBS__STR_LEN_64]; /* ml setup table loaded */
138  CHARS c_readout_name[SBS__STR_LEN_64]; /* readout table loaded */
139  CHARS c_pathstr[SBS__STR_LEN_64]; /* path string */
140  CHARS c_devname[SBS__STR_LEN_64]; /* Name of tape device */
141  CHARS c_tape_label[SBS__STR_LEN_64]; /* current tape label */
142  CHARS c_file_name[256]; /* current file name */
143  CHARS c_out_chan[SBS__STR_LEN_64]; /* active ouput media */
144  /* ------------------ end of fixed block --------------------------*/
145  CHARS c_pname[SYS__N_MAX_PROCS][SBS__STR_LEN_64]; /* as pprio */
146 } s_daqst;
INTU4 l_pos_on_tape
Definition: s_daqst.h:60
INTU4 bl_r_events
Definition: s_daqst.h:48
INTU4 bl_rfio_connected
Definition: s_daqst.h:126
INTU4 bh_verbose_flg
Definition: s_daqst.h:95
INTU4 l_file_auto
Definition: s_daqst.h:63
#define SBS__N_TRG_TYP
Definition: sbs_def.h:25
INTU4 bh_ena_evt_copy
Definition: s_daqst.h:76
INTU4 bl_event_build_on
Definition: s_daqst.h:118
INTU4 l_block_length
Definition: s_daqst.h:59
INTU4 bl_r_kbyte
Definition: s_daqst.h:51
INTU4 bl_pipe_slots
Definition: s_daqst.h:112
INTU4 bl_evtsrv_maxcli
Definition: s_daqst.h:109
INTU4 bl_evtsrv_scale
Definition: s_daqst.h:107
INTU4 bl_trans_ready
Definition: s_daqst.h:120
INTU4 bl_strsrv_scale
Definition: s_daqst.h:101
INTU4 bh_cam_tab_loaded
Definition: s_daqst.h:36
INTU4 l_block_size
Definition: s_daqst.h:67
INTU4 bl_strsrv_nokeep
Definition: s_daqst.h:105
INTU4 bh_set_ml_loaded
Definition: s_daqst.h:34
INTU4 bl_n_kbyte
Definition: s_daqst.h:41
INTU4 bl_no_stream_buf
Definition: s_daqst.h:125
INTU4 bl_n_kbyte_file
Definition: s_daqst.h:47
INTU4 l_sbs__n_trg_typ
Definition: s_daqst.h:28
INTS4 l_open_vol
Definition: s_daqst.h:69
INTU4 bl_evtsrv_all
Definition: s_daqst.h:110
INTS4 l_irq_maj_dev_id
Definition: s_daqst.h:99
INTU4 bl_n_strserv_bufs
Definition: s_daqst.h:44
INTS4 l_free_streams
Definition: s_daqst.h:37
INTS4 l_rate_sec
Definition: s_daqst.h:72
INTU4 bl_flush_time
Definition: s_daqst.h:57
#define SYS__N_MAX_PROCS
Definition: sys_def.h:22
INTU4 l_block_count
Definition: s_daqst.h:66
INTU4 l_file_cur
Definition: s_daqst.h:64
INTU4 bl_trans_connected
Definition: s_daqst.h:121
INTU4 bh_setup_loaded
Definition: s_daqst.h:33
INTU4 bl_n_buffers
Definition: s_daqst.h:39
INTU4 bl_evtsrv_events
Definition: s_daqst.h:108
INTU4 bl_n_evserv_events
Definition: s_daqst.h:42
INTU4 l_daqst_lw
Definition: s_daqst.h:24
INTU4 l_file_count
Definition: s_daqst.h:62
unsigned int INTU4
Definition: typedefs.h:29
INTS4 l_irq_driv_id
Definition: s_daqst.h:98
#define SBS__STR_LEN_64
Definition: sbs_def.h:21
INTU4 bl_n_strserv_kbytes
Definition: s_daqst.h:45
INTU4 bh_acqui_running
Definition: s_daqst.h:31
INTU4 bl_r_strserv_bufs
Definition: s_daqst.h:55
INTU4 bl_n_events
Definition: s_daqst.h:38
INTU4 bh_trig_master
Definition: s_daqst.h:73
INTU4 bl_r_bufstream
Definition: s_daqst.h:50
INTU4 bl_pipe_size_KB
Definition: s_daqst.h:114
INTU4 bl_r_buffers
Definition: s_daqst.h:49
int INTS4
Definition: typedefs.h:28
INTU4 l_max_tape_size
Definition: s_daqst.h:61
INTU4 bl_n_kbyte_tape
Definition: s_daqst.h:46
INTU4 bh_daqst_initalized
Definition: s_daqst.h:29
INTU4 bl_run_time
Definition: s_daqst.h:97
INTU4 bl_n_bufstream
Definition: s_daqst.h:40
INTU4 l_sys__n_max_procs
Definition: s_daqst.h:26
INTU4 bl_strsrv_nosync
Definition: s_daqst.h:103
INTU4 bh_event_serv_ready
Definition: s_daqst.h:100
INTU4 bl_strsrv_sync
Definition: s_daqst.h:102
INTU4 bl_r_strserv_kbytes
Definition: s_daqst.h:56
INTU4 bl_strsrv_keep
Definition: s_daqst.h:104
INTU4 bl_pipe_filled_KB
Definition: s_daqst.h:115
INTU4 bl_esosrv_maxcli
Definition: s_daqst.h:111
INTU4 bl_strsrv_scaled
Definition: s_daqst.h:106
INTS4 l_open_file
Definition: s_daqst.h:70
INTU4 bh_set_mo_loaded
Definition: s_daqst.h:35
INTU4 bl_r_kbyte_tape
Definition: s_daqst.h:52
INTU4 l_endian
Definition: s_daqst.h:22
INTU4 l_version
Definition: s_daqst.h:23
INTS4 l_pathnum
Definition: s_daqst.h:58
INTU4 bl_no_streams
Definition: s_daqst.h:122
INTU4 bl_pipe_slots_filled
Definition: s_daqst.h:113
INTU4 l_fix_lw
Definition: s_daqst.h:25
INTU4 bh_histo_ready
Definition: s_daqst.h:75
INTU4 l_procs_run
Definition: s_daqst.h:32
INTS4 l_rate_on
Definition: s_daqst.h:71
char CHARS
Definition: typedefs.h:21
INTU4 bh_acqui_started
Definition: s_daqst.h:30
INTU4 bl_histo_port
Definition: s_daqst.h:96
INTU4 bl_spill_on
Definition: s_daqst.h:116
INTU4 l_record_size
Definition: s_daqst.h:68
INTU4 bl_r_evserv_kbytes
Definition: s_daqst.h:54
INTU4 bh_histo_enable
Definition: s_daqst.h:74
INTU4 bl_dabc_enabled
Definition: s_daqst.h:119
INTU4 l_file_size
Definition: s_daqst.h:65
INTU4 bl_n_evserv_kbytes
Definition: s_daqst.h:43
INTU4 bl_r_evserv_events
Definition: s_daqst.h:53
INTU4 bl_delayed_eb_ena
Definition: s_daqst.h:117
INTU4 l_sbs__str_len_64
Definition: s_daqst.h:27