MIDAS
|
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <math.h>
#include <ctype.h>
#include <assert.h>
#include "midas.h"
Go to the source code of this file.
Macros | |
#define | FE_NAME "feslow" |
#define | EQ_NAME "Slow" |
#define | EQ_EVID 1 |
Functions | |
INT | frontend_init () |
Frontend initialization. | |
INT | frontend_exit () |
Frontend exit. | |
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. | |
INT | frontend_loop () |
Frontend loop. | |
int | read_slow_event (char *pevent, int off) |
static int | configure () |
INT | poll_event (INT source, INT count, BOOL test) |
INT | interrupt_configure (INT cmd, INT source, PTYPE adr) |
double | get_time () |
Variables | |
char * | frontend_name = FE_NAME |
char * | frontend_file_name = __FILE__ |
BOOL | frontend_call_loop = TRUE |
INT | display_period = 0 |
INT | max_event_size = 2000 |
INT | max_event_size_frag = 0 |
INT | event_buffer_size = 10*2000 |
HNDLE | hDB |
main ODB handle | |
INT | gbl_run_number |
EQUIPMENT | equipment [] |
int | count_slow = 0 |
#define EQ_EVID 1 |
Definition at line 27 of file feslow.cxx.
#define EQ_NAME "Slow" |
Definition at line 26 of file feslow.cxx.
#define FE_NAME "feslow" |
Definition at line 25 of file feslow.cxx.
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 158 of file feslow.cxx.
Definition at line 127 of file feslow.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 172 of file feslow.cxx.
Frontend exit.
Runs at frontend shutdown. Disconnect hardware and set equipment status in ODB
Definition at line 151 of file feslow.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 140 of file feslow.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 197 of file feslow.cxx.
double get_time | ( | ) |
Definition at line 227 of file feslow.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 183 of file feslow.cxx.
Definition at line 214 of file feslow.cxx.
Definition at line 252 of file feslow.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 190 of file feslow.cxx.
int count_slow = 0 |
Definition at line 125 of file feslow.cxx.
INT display_period = 0 |
Definition at line 47 of file feslow.cxx.
EQUIPMENT equipment[] |
Definition at line 73 of file feslow.cxx.
INT event_buffer_size = 10*2000 |
Definition at line 54 of file feslow.cxx.
Definition at line 43 of file feslow.cxx.
Definition at line 40 of file feslow.cxx.
Definition at line 37 of file feslow.cxx.
INT gbl_run_number |
Definition at line 67 of file feslow.cxx.
HNDLE hDB |
main ODB handle
Definition at line 66 of file feslow.cxx.
INT max_event_size = 2000 |
Definition at line 50 of file feslow.cxx.
INT max_event_size_frag = 0 |
Definition at line 51 of file feslow.cxx.