GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
s_clnt_filter.h
Go to the documentation of this file.
1 // $Id: s_clnt_filter.h 3348 2021-10-18 14:18:11Z 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 fuer 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 /* filter structure for CLIENT */
15 
16 #ifndef S_CLNT_FILTER_H
17 #define S_CLNT_FILTER_H
18 
19 #include "gps_sc_def.h"
20 
21 #if MBS_ENDIAN == 1
22 
23 struct s_clnt_filter
24  {
25 /* -------> Swapped <-------- */
26 /* --------=========--------- */
27  /* --- control byte ordering and machine type (2LW) ---- */
28  unsigned long l_testbit; /* bit pattern */
29  unsigned long l_endian; /* endian of sender */
30  /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
31  long l_numb_of_evt; /* numb of events to send */
32  long l_sample_rate; /* flt match sample rate */
33  long l_flush_rate; /* buffer flushing rate [sec]*/
34  struct s_filter filter[GPS__MAXFLT];/* 32 filter express (3LW) */
35  struct s_flt_descr flt_descr[GPS__MAXFLTDESCR]; /* Filter descriptor*/
36  short unsigned if_fltsev; /* filter on subevent */
37  short unsigned if_fltevt; /* filter on event */
38  short unsigned if_wrtsev; /* write subevts (numb of sev)*/
39  short unsigned if_wrtevt; /* write whole event */
40  };
41 
42 #else
43 
45  {
46  /* --- control byte ordering and machine type (2LW) ---- */
47  unsigned int l_testbit; /* bit pattern */
48  unsigned int l_endian; /* endian of sender */
49  /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
50  int l_numb_of_evt; /* numb of events to send */
51  int l_sample_rate; /* flt match sample rate */
52  int l_flush_rate; /* buffer flushing rate [sec]*/
53  struct s_filter filter[GPS__MAXFLT];/* 32 filter express (3LW) */
54  struct s_flt_descr flt_descr[GPS__MAXFLTDESCR]; /* Filter descriptor*/
55  short unsigned if_fltevt; /* filter on event */
56  short unsigned if_fltsev; /* filter on subevent */
57  short unsigned if_wrtevt; /* write whole event */
58  short unsigned if_wrtsev; /* write subevts (numb of sev)*/
59  };
60 
61 #endif
62 
63 #endif
short unsigned if_fltsev
Definition: s_clnt_filter.h:56
short unsigned if_wrtsev
Definition: s_clnt_filter.h:58
#define GPS__MAXFLTDESCR
Definition: gps_sc_def.h:37
unsigned int l_endian
Definition: s_clnt_filter.h:48
#define GPS__MAXFLT
Definition: gps_sc_def.h:36
short unsigned if_wrtevt
Definition: s_clnt_filter.h:57
unsigned int l_testbit
Definition: s_clnt_filter.h:47
struct s_filter filter[GPS__MAXFLT]
Definition: s_clnt_filter.h:53
struct s_flt_descr flt_descr[GPS__MAXFLTDESCR]
Definition: s_clnt_filter.h:54
short unsigned if_fltevt
Definition: s_clnt_filter.h:55