MIDAS
|
Go to the source code of this file.
Macros | |
#define | N_READBACK 4 |
Functions | |
INT | read_cr_event (char *pevent, INT off) |
void | cr_settings_changed (HNDLE, HNDLE, int, void *) |
INT | poll_event (INT source, INT count, BOOL test) |
INT | interrupt_configure (INT cmd, INT source, POINTER_T 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 = "CR Frontend" |
const char * | frontend_file_name = __FILE__ |
BOOL | frontend_call_loop = FALSE |
INT | display_period = 1000 |
INT | max_event_size = 10000 |
INT | max_event_size_frag = 5 * 1024 * 1024 |
INT | event_buffer_size = 10 * 10000 |
BOOL | equipment_common_overwrite = TRUE |
const char * | cr_settings_str [] |
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 167 of file crfe.cxx.
Definition at line 297 of file crfe.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 |
Frontend exit.
Runs at frontend shutdown. Disconnect hardware and set equipment status in ODB
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 129 of file crfe.cxx.
Frontend loop.
If frontend_call_loop is true, this routine gets called when the frontend is idle or once between every event.
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 278 of file crfe.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 80 of file crfe.cxx.
EQUIPMENT equipment[] |
Definition at line 93 of file crfe.cxx.