Low-Energy Muon (LEM) Experiment  0.5.2
sep61_ps64_vac_scfe.cxx File Reference
#include <cstdio>
#include "midas.h"
#include "mfe.h"
#include "class/multi.h"
#include "ps64.h"
#include "sep61vac.h"
#include "sps_tcpip_old.h"
#include "sps_tcpip.h"
Include dependency graph for sep61_ps64_vac_scfe.cxx:

Go to the source code of this file.

Functions

INT poll_event (INT source, INT count, BOOL test)
 
INT interrupt_configure (INT cmd, INT source, POINTER_T adr)
 
INT frontend_init ()
 
INT frontend_exit ()
 
INT frontend_loop ()
 
INT begin_of_run (INT run_number, char *error)
 
INT end_of_run (INT run_number, char *error)
 
INT pause_run (INT run_number, char *error)
 
INT resume_run (INT run_number, char *error)
 

Variables

const char * frontend_name = "SEP61_PS64_VAC_SC"
 The frontend name (client name) as seen by other MIDAS clients. More...
 
const char * frontend_file_name = __FILE__
 The frontend file name, don't change it. More...
 
BOOL frontend_call_loop = FALSE
 frontend_loop is called periodically if this variable is TRUE More...
 
INT display_period = 1000
 a frontend status page is displayed with this frequency in ms More...
 
INT max_event_size = 10000
 maximum event size produced by this frontend More...
 
INT max_event_size_frag = 5*1024*1024
 maximum event size for fragmented events (EQ_FRAGMENTED) More...
 
INT event_buffer_size = 10*10000
 buffer size to hold events More...
 
DEVICE_DRIVER sep61ps64vac_driver []
 device driver list More...
 
BOOL equipment_common_overwrite = FALSE
 
EQUIPMENT equipment []
 equipment structure for the mfe.c More...
 

Function Documentation

INT begin_of_run ( INT  run_number,
char *  error 
)

Called by the mfe at the begin of the run. Here it is only a dummy.

Definition at line 136 of file sep61_ps64_vac_scfe.cxx.

INT end_of_run ( INT  run_number,
char *  error 
)

Called by the mfe at the end of the run. Here it is only a dummy.

Definition at line 146 of file sep61_ps64_vac_scfe.cxx.

INT frontend_exit ( )

Called by the mfe at exiting stage. Here it is only a dummy.

Definition at line 116 of file sep61_ps64_vac_scfe.cxx.

INT frontend_init ( )

Called by the master frontend (mfe) at initializing stage. Here it is only a dummy.

Definition at line 100 of file sep61_ps64_vac_scfe.cxx.

INT frontend_loop ( )

Called by the mfe in the main loop. Here it is only a dummy.

Definition at line 126 of file sep61_ps64_vac_scfe.cxx.

INT interrupt_configure ( INT  cmd,
INT  source,
POINTER_T  adr 
)

Definition at line 93 of file sep61_ps64_vac_scfe.cxx.

INT pause_run ( INT  run_number,
char *  error 
)

Called by the mfe when the run is paused. Here it is only a dummy.

Definition at line 156 of file sep61_ps64_vac_scfe.cxx.

INT poll_event ( INT  source,
INT  count,
BOOL  test 
)

Definition at line 92 of file sep61_ps64_vac_scfe.cxx.

INT resume_run ( INT  run_number,
char *  error 
)

Called by the mfe when the run is resumed. Here it is only a dummy.

Definition at line 166 of file sep61_ps64_vac_scfe.cxx.

Variable Documentation

INT display_period = 1000

a frontend status page is displayed with this frequency in ms

Definition at line 31 of file sep61_ps64_vac_scfe.cxx.

EQUIPMENT equipment[]
Initial value:
= {
{ "Sep61Ps64Vac",
{79, 0,
"SYSTEM",
EQ_SLOW,
0,
"FIXED",
TRUE,
RO_RUNNING |
RO_TRANSITIONS,
60000,
0,
0,
1,
"", "", "",},
cd_multi_read,
cd_multi,
NULL,
},
{ "" }
}
DEVICE_DRIVER sep61ps64vac_driver[]
device driver list

equipment structure for the mfe.c

Definition at line 63 of file sep61_ps64_vac_scfe.cxx.

BOOL equipment_common_overwrite = FALSE

equipment_common_overwrite:

  • If that flag is TRUE, then the contents of the "equipment" structure is copied to the ODB on each start of the front-end.
  • If the flag is FALSE, then the ODB values are kept on the start of the front-end

Definition at line 60 of file sep61_ps64_vac_scfe.cxx.

INT event_buffer_size = 10*10000

buffer size to hold events

Definition at line 40 of file sep61_ps64_vac_scfe.cxx.

BOOL frontend_call_loop = FALSE

frontend_loop is called periodically if this variable is TRUE

Definition at line 28 of file sep61_ps64_vac_scfe.cxx.

const char* frontend_file_name = __FILE__

The frontend file name, don't change it.

Definition at line 25 of file sep61_ps64_vac_scfe.cxx.

const char* frontend_name = "SEP61_PS64_VAC_SC"

The frontend name (client name) as seen by other MIDAS clients.

Definition at line 23 of file sep61_ps64_vac_scfe.cxx.

INT max_event_size = 10000

maximum event size produced by this frontend

Definition at line 34 of file sep61_ps64_vac_scfe.cxx.

INT max_event_size_frag = 5*1024*1024

maximum event size for fragmented events (EQ_FRAGMENTED)

Definition at line 37 of file sep61_ps64_vac_scfe.cxx.

DEVICE_DRIVER sep61ps64vac_driver[]
Initial value:
= {
{ "Sep61Vac", sep61vac, SEP61VAC_VARS, sps_tcpip_old, DF_INPUT },
{ "PS64 in", ps64_in, PS64_IN_VARS, sps_tcpip, DF_INPUT },
{ "PS64 out", ps64_out, PS64_OUT_VARS, sps_tcpip, DF_OUTPUT },
{ "" }
}
#define SEP61VAC_VARS
number of variables in the get list
Definition: sep61vac.h:12
INT ps64_out(INT cmd,...)
#define PS64_OUT_VARS
number of variables in the get list
Definition: ps64.h:11
INT ps64_in(INT cmd,...)
#define PS64_IN_VARS
number of variables in the get list
Definition: ps64.h:10
INT sep61vac(INT cmd,...)

device driver list

Definition at line 45 of file sep61_ps64_vac_scfe.cxx.