GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
s_set_ml.h
Go to the documentation of this file.
1 // $Id: s_set_ml.h 478 2009-10-29 12:26:09Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #include "typedefs.h"
15 /*
16  * N. Kurz 10-Jan-1996
17  *
18  * within this structure the setup information for one host in the multi-branch
19  * multi-layer daq system is specified.
20  * for each host in the system which resides in the hierarchy above a
21  * branch master (meb) such a set of data must be provided through a
22  * parsed user input file.
23  */
24 
25 /* after allocating s_set_ml set in f_ut_set_ml_ini */
26 /* ps_set_ml->l_endian = 1; */
27 /* ps_set_ml->l_version = n; */
28 /* ps_set_ml->l_set_ml_lw = sizeof(s_set_ml)/4; */
29 /* ps_set_ml->l_fix_lw = ((int)&c_rd_hostname[0][0]-(int)ps_set_ml)/4; */
30 /* ps_set_ml->l_ml__n_rd_pipe = ML__N_RD_PIPE; */
31 /* ps_set_ml->l_short_len = 16; */
32 /* ps_set_ml->l_long_len = 128; */
33 typedef struct
34 {
35  INTU4 l_endian; /* set to 1 */
36  INTU4 l_version; /* increment in f_ut_status_ini after changes */
37  INTU4 l_set_ml_lw; /* sizeof(s_set_ml)/4 : total number of lw */
38  INTU4 l_fix_lw; /* (&c_rd_hostname-ps_set_ml)/4 : fixed number of longwords to read */
39  INTU4 l_ml__n_rd_pipe; /* set to ML__N_RD_PIPE */
40  INTU4 l_short_len; /* set to length of short strings (16) */
41  INTU4 l_long_len; /* set to length of long strings (128) */
42 
44  /* number of pipes to read. this variable must not be specified, */
45  /* instead it will be filled during loading the multi-layer setup */
46  /* for this host */
47 
49  /* 1: write data from all read pipes into next layer pipe */
50  /* 2: format events into event buffer streams */
51  /* 3: 1 + 2 */
52 
54  /* length of single event buffer. only needed if l_out_mode = 2,3 */
55 
57  /* number of event buffers in a stream. only if l_out_mode = 2,3 */
58 
60  /* number of streams. only needed if l_out_mode = 2,3 */
61 
63  /* base address of write pipe. only needed if l_out_mode = 1,3 */
64 
66  /* size of write pipe (in bytes). only needed if l_out_mode = 1,3 */
67 
69  /* number of fragments to reserve in the write pipe. only needed if */
70  /* l_out_mode = 1,3 */
71 
72  INTS4 l_rd_host_flg[ML__N_RD_PIPE];
73  /* 0: not to read from this host */
74  /* 1: pipe must be read from this node, node is branchmaster */
75  /* 2: pipe must be read from this node, node is NOT a branchmaster */
76 
77  INTS4 l_rd_pipe_base_addr[ML__N_RD_PIPE];
78  /* base address of the pipes to read, seen from this host */
79 
80  INTS4 l_rd_pipe_len[ML__N_RD_PIPE];
81  /* size of the pipes to read. this variable must not be specified, */
82  /* instead it will be filled from either a SBS setup file or from */
83  /* the write pipe specification (see below) of the coresponding */
84  /* host lying below the hierarchy of this host (in bytes) */
85 
86  INTS4 l_rd_pipe_n_frag[ML__N_RD_PIPE];
87  /* number of fragments to reserve in the read pipes. must also not */
88  /* be specified. see comment above for l_rd_pipe_len[] */
89  CHARS c_hostname[16];
90  /* net name of this host */
91 
92 /* ------------------ end of fixed block --------------------------*/
93  CHARS c_rd_hostname [ML__N_RD_PIPE][16];
94  /* netname of all hosts where this host have to read pipes */
95 
96  CHARS c_sbs_setup_path [ML__N_RD_PIPE][128];
97  /* paths/filenames of the SBS setup file of the hosts to read from. */
98  /* only needed if these hosts are SBS branch masters. in this case */
99  /* the read pipes are specified in the SBS setup file. the base */
100  /* address of the read pipes must always be specified nevertheless */
101 
102 
103 } s_set_ml;
INTU4 l_fix_lw
Definition: s_set_ml.h:38
INTU4 l_version
Definition: s_set_ml.h:36
INTS4 l_wr_pipe_n_frag
Definition: s_set_ml.h:68
INTS4 l_n_ev_buf
Definition: s_set_ml.h:56
INTU4 l_set_ml_lw
Definition: s_set_ml.h:37
INTS4 l_ev_buf_len
Definition: s_set_ml.h:53
INTU4 l_long_len
Definition: s_set_ml.h:41
unsigned int INTU4
Definition: typedefs.h:29
#define ML__N_RD_PIPE
Definition: ml_def.h:19
int INTS4
Definition: typedefs.h:28
INTS4 l_n_rd_pipe
Definition: s_set_ml.h:43
INTS4 l_n_stream
Definition: s_set_ml.h:59
INTS4 l_out_mode
Definition: s_set_ml.h:48
INTS4 l_wr_pipe_len
Definition: s_set_ml.h:65
INTS4 l_wr_pipe_base_addr
Definition: s_set_ml.h:62
INTU4 l_short_len
Definition: s_set_ml.h:40
INTU4 l_endian
Definition: s_set_ml.h:35
INTU4 l_ml__n_rd_pipe
Definition: s_set_ml.h:39
char CHARS
Definition: typedefs.h:21