Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

s_daqst.h

Go to the documentation of this file.
00001 //-------------------------------------------------------------
00002 //        Go4 Release Package v3.04-01 (build 30401)
00003 //                      28-November-2008
00004 //---------------------------------------------------------------
00005 //   The GSI Online Offline Object Oriented (Go4) Project
00006 //   Experiment Data Processing at EE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #include "typedefs.h"
00017 /*
00018  * N. Kurz
00019  * daq status structure
00020  * sorted for better byte swap  /HE
00021  * 30.05.2000 replaced run_start by histo_port /HE
00022  * 25.10.2005 added spill, event building, and pipe status /HE
00023  */
00024 
00025 /* After allocating s_daqst, set by calling f_ut_status_ini */
00026 /* ps_daqst->l_endian   = 1;                      */
00027 /* ps_daqst->l_version  = n;                      */
00028 /* ps_daqst->l_daqst_lw = sizeof(s_daqst)/4;      */
00029 /* ps_daqst->l_fix_lw  = ((int)&c_pname[0][0]-(int)ps_daqst)/4; */
00030 /* ps_daqst->l_sys__n_max_procs =  SYS__N_MAX_PROCS; */
00031 /* ps_daqst->l_sbs__str_len_64 =   SBS__STR_LEN_64;  */
00032 /* ps_daqst->l_sbs__n_trg_typ =    SBS__N_TRG_TYP;   */
00033 
00034 typedef struct
00035 {
00036   INTU4 l_endian;                    /* set to 1 if sent */
00037   INTU4 l_version;                   /* increment in f_ut_status_ini after changes */
00038   INTU4 l_daqst_lw;                  /* sizeof(s_daqst)/4 : number of lw */
00039   INTU4 l_fix_lw;                    /* (&c_pname-ps_daqst)/4 : fix number of longwords to read */
00040   INTU4 l_sys__n_max_procs;          /* maximum number of processes */
00041   INTU4 l_sbs__str_len_64;           /* String length of process names */
00042   INTU4 l_sbs__n_trg_typ;            /* maximum number of triggers */
00043   INTU4 bh_daqst_initalized;         /* crea_daqst */
00044   INTU4 bh_acqui_started;            /* util(f_ut_op_trig_mod), read_cam_slav, read_meb */
00045   INTU4 bh_acqui_running;            /* collector, read_cam_slav, read_meb  */
00046   INTU4 l_procs_run;                 /* processes running (index in l_pid) */
00047   INTU4 bh_setup_loaded;             /* util(f_ut_load_setup) */
00048   INTU4 bh_set_ml_loaded;            /* util(f_ut_load_ml_setup) */
00049   INTU4 bh_set_mo_loaded;            /* util(f_ut_load_mo_setup) */
00050   INTU4 bh_cam_tab_loaded;           /* read_cam_slav, read_meb) */
00051   INTS4 l_free_streams;              /* transport */
00052   INTU4 bl_n_events;                 /* collector */
00053   INTU4 bl_n_buffers;                /* collector f_col_format */
00054   INTU4 bl_n_bufstream;              /* transport */
00055   INTU4 bl_n_kbyte;                  /* transport */
00056   INTU4 bl_n_evserv_events;          /* event_serv f_ev_checkevt  */
00057   INTU4 bl_n_evserv_kbytes;          /* event_serv f_ev_send */
00058   INTU4 bl_n_strserv_bufs;           /* stream_serv  */
00059   INTU4 bl_n_strserv_kbytes;         /* stream_serv  */
00060   INTU4 bl_n_kbyte_tape;             /* transport  */
00061   INTU4 bl_n_kbyte_file;             /* transport */
00062   INTU4 bl_r_events;                 /* rate  */
00063   INTU4 bl_r_buffers;                /* rate  */
00064   INTU4 bl_r_bufstream;              /* rate */
00065   INTU4 bl_r_kbyte;                  /* rate  */
00066   INTU4 bl_r_kbyte_tape;             /* rate  (from l_block_count) */
00067   INTU4 bl_r_evserv_events;          /* rate */
00068   INTU4 bl_r_evserv_kbytes;          /* rate  */
00069   INTU4 bl_r_strserv_bufs;           /* rate  */
00070   INTU4 bl_r_strserv_kbytes;         /* rate */
00071   INTU4 bl_flush_time;               /* stream flush time                */
00072   INTS4 l_pathnum;                   /* path number of open device */
00073   INTU4 l_block_length;              /* current block length */
00074   INTU4 l_pos_on_tape;               /* current tape position in kB */
00075   INTU4 l_max_tape_size;             /* maximal tape length in kB */
00076   INTU4 l_file_count;                /* file count on volume */
00077   INTU4 l_file_auto;                 /* file count on volume */
00078   INTU4 l_file_cur;                  /* file count on volume */
00079   INTU4 l_file_size;                 /* file size */
00080   INTU4 l_block_count;               /* buffers on file */
00081   INTU4 l_block_size;                /* block size (=buffer) in bytes */
00082   INTU4 l_record_size;               /* record size on bytes */
00083   INTS4 l_open_vol;                  /* open mode of volume */
00084   INTS4 l_open_file;                 /* open  file flag */
00085   INTS4 l_rate_on;                   /* for m_daq_rate */
00086   INTS4 l_rate_sec;                  /* for m_daq_rate */
00087   INTU4 bh_trig_master;              /* util(f_ut_op_trig_mod) */
00088   INTU4 bh_histo_enable;             /* collector */
00089   INTU4 bh_histo_ready;              /* collector */
00090   INTU4 bh_ena_evt_copy;             /* collector */
00091   INTU4 bl_n_trig[SBS__N_TRG_TYP];   /* Trigger counter (read_cam_slav or read_meb) */
00092   INTU4 bl_n_si  [SBS__N_TRG_TYP];   /* Invalid subevents (collector) */
00093   INTU4 bl_n_evt [SBS__N_TRG_TYP];   /* Valid triggers (collector) */
00094   INTU4 bh_running[SYS__N_MAX_PROCS];/* run bit for tasks */
00095   INTU4 l_pid[SYS__N_MAX_PROCS];     /* pid table */
00096   INTU4 l_type[SYS__N_MAX_PROCS];    /* Type number defined in sys_def.h */
00097   INTS4 l_pprio[SYS__N_MAX_PROCS];   /* daq processes priority */
00098   /*   f_ut_init_daq_proc,  */
00099   /*   f_ut_clear_daqst,    */
00100   /*   f_ut_exit_daq_proc,  */
00101   /*   f_ut_show_acq,       */
00102   /*   dispatch,            */
00103   /*   prompt               */
00104   /*   tasks                */
00105   INTU4 bh_pact[SYS__N_MAX_PROCS];   /* daq processes, 1 = active, as pprio */
00106   INTU4 bh_verbose_flg;              /* */
00107   INTU4 bl_histo_port;                /* not used */
00108   INTU4 bl_run_time;                 /* not used */
00109   INTS4 l_irq_driv_id;               /* 0=irq driver/device not installed */
00110   INTS4 l_irq_maj_dev_id;            /*            "="                    */
00111   INTU4 bh_event_serv_ready;         /* event_serv, stream_serv */
00112   INTU4 bl_strsrv_scale;             /* stream server */
00113   INTU4 bl_strsrv_sync;              /* stream server  */
00114   INTU4 bl_strsrv_nosync;            /* stream server  */
00115   INTU4 bl_strsrv_keep;              /* stream server  */
00116   INTU4 bl_strsrv_nokeep;            /* stream server  */
00117   INTU4 bl_strsrv_scaled;            /* stream server  */
00118   INTU4 bl_evtsrv_scale;             /* event server  */
00119   INTU4 bl_evtsrv_events;            /* event server  */
00120   INTU4 bl_evtsrv_maxcli;            /* event server  */
00121   INTU4 bl_evtsrv_all;               /* event server  */
00122   INTU4 bl_esosrv_maxcli;            /* esone server  */
00123   INTU4 bl_pipe_slots;               /* sub event slots in readout pipe */
00124   INTU4 bl_pipe_slots_filled;        /* sub event slots used */
00125   INTU4 bl_pipe_size_KB;             /* readout pipe size */
00126   INTU4 bl_pipe_filled_KB;           /* readout pipe size occupied */
00127   INTU4 bl_spill_on;                 /* Spill on/off */
00128   INTU4 bl_delayed_eb_ena;           /* Delayed event building enabled/disab.*/
00129   INTU4 bl_event_build_on;           /* Event building on/off */
00130   CHARS c_user[SBS__STR_LEN_64];     /* username */
00131   CHARS c_date[SBS__STR_LEN_64];     /* date of last update (m_daq_rate) */
00132   CHARS c_exprun[SBS__STR_LEN_64];   /* run name */
00133   CHARS c_exper[SBS__STR_LEN_64];    /* experiment */
00134   CHARS c_host[SBS__STR_LEN_64];           /* name of host */
00135   CHARS c_remote[SBS__STR_LEN_64];         /* name of remote control node */
00136   CHARS c_display[SBS__STR_LEN_64];         /* name of remote display node */
00137   CHARS c_anal_segm_name[SBS__STR_LEN_64]; /* name of histogram segment in use */
00138   /* by f_his_anal() in m_collector   */
00139   CHARS c_setup_name[SBS__STR_LEN_64];     /* setup table loaded */
00140   CHARS c_ml_setup_name[SBS__STR_LEN_64];  /* ml setup table loaded */
00141   CHARS c_readout_name[SBS__STR_LEN_64];   /* readout table loaded */
00142   CHARS c_pathstr[SBS__STR_LEN_64];        /* path string */
00143   CHARS c_devname[SBS__STR_LEN_64];        /* Name of tape device */
00144   CHARS c_tape_label[SBS__STR_LEN_64];     /* current tape label */
00145   CHARS c_file_name[SBS__STR_LEN_64];      /* current file name */
00146   CHARS c_out_chan[SBS__STR_LEN_64];       /* active ouput media */
00147   /* ------------------ end of fixed block --------------------------*/
00148   CHARS c_pname[SYS__N_MAX_PROCS][SBS__STR_LEN_64]; /* as pprio */
00149 } s_daqst;
00150 
00151 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Fri Nov 28 12:59:33 2008 for Go4-v3.04-1 by  doxygen 1.4.2