MIDAS
|
#include <stdio.h>
#include <math.h>
#include "midas.h"
#include "class/generic.h"
#include "device/epics_ca.h"
#include "mfe.h"
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, PTYPE adr) |
INT | frontend_init () |
Frontend initialization. | |
INT | frontend_exit () |
Frontend exit. | |
INT | frontend_loop () |
Frontend loop. | |
INT | begin_of_run (INT run_number, char *error) |
Begin of Run. | |
INT | end_of_run (INT run_number, char *error) |
End of Run. | |
INT | pause_run (INT run_number, char *error) |
Pause Run. | |
INT | resume_run (INT run_number, char *error) |
Resume Run. | |
Variables | |
const char * | frontend_name = "feEpics" |
const char * | frontend_file_name = __FILE__ |
BOOL | frontend_call_loop = TRUE |
INT | display_period = 2000 |
INT | max_event_size_frag = 5 * 1024 * 1024 |
INT | max_event_size = 10000 |
INT | event_buffer_size = 10 * 10000 |
BOOL | equipment_common_overwrite = FALSE |
DEVICE_DRIVER | epics_driver [] |
EQUIPMENT | equipment [] |
Begin of Run.
Called every run start transition. Set equipment status in ODB, start acquisition on the modules.
[in] | run_number | Number of the run being started |
[out] | error | Can be used to write a message string to midas.log |
Definition at line 216 of file frontend.cxx.
End of Run.
Called every stop run transition. Set equipment status in ODB, stop acquisition on the modules.
[in] | run_number | Number of the run being ended |
[out] | error | Can be used to write a message string to midas.log |
Definition at line 223 of file frontend.cxx.
Frontend exit.
Runs at frontend shutdown. Disconnect hardware and set equipment status in ODB
Definition at line 153 of file frontend.cxx.
Frontend initialization.
Runs once at application startup. We initialize the hardware and optical interfaces and set the equipment status in ODB. We also lock the frontend to once physical cpu core.
Definition at line 118 of file frontend.cxx.
Frontend loop.
If frontend_call_loop is true, this routine gets called when the frontend is idle or once between every event.
Definition at line 163 of file frontend.cxx.
Definition at line 111 of file frontend.cxx.
Pause Run.
Called every pause run transition.
[in] | run_number | Number of the run being ended |
[out] | error | Can be used to write a message string to midas.log |
Definition at line 230 of file frontend.cxx.
Definition at line 107 of file frontend.cxx.
Resume Run.
Called every resume run transition.
[in] | run_number | Number of the run being ended |
[out] | error | Can be used to write a message string to midas.log |
Definition at line 237 of file frontend.cxx.
INT display_period = 2000 |
Definition at line 31 of file frontend.cxx.
DEVICE_DRIVER epics_driver[] |
EQUIPMENT equipment[] |
Definition at line 81 of file frontend.cxx.
Definition at line 42 of file frontend.cxx.
INT event_buffer_size = 10 * 10000 |
Definition at line 40 of file frontend.cxx.
Definition at line 28 of file frontend.cxx.
Definition at line 25 of file frontend.cxx.
Definition at line 23 of file frontend.cxx.
INT max_event_size = 10000 |
Definition at line 37 of file frontend.cxx.
INT max_event_size_frag = 5 * 1024 * 1024 |
Definition at line 34 of file frontend.cxx.