MIDAS
|
Go to the source code of this file.
Macros | |
#define | N_ADC 4 |
#define | N_TDC 8 |
#define | N_SCLR 4 |
#define | CRATE 0 |
#define | SLOT_IO 23 |
#define | SLOT_ADC 1 |
#define | SLOT_TDC 2 |
#define | SLOT_SCLR 3 |
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_mantrig_event (char *pevent, INT off) |
ADC0_BANK_STR (adc0_bank_str) | |
INT | poll_event (INT source, INT count, BOOL test) |
INT | interrupt_configure (INT cmd, INT source, PTYPE adr) |
Variables | |
char * | frontend_name = "mantrigfe" |
char * | frontend_file_name = __FILE__ |
BOOL | frontend_call_loop = FALSE |
INT | display_period = 3000 |
INT | max_event_size = 10000 |
INT | max_event_size_frag = 5 * 1024 * 1024 |
INT | event_buffer_size = 10 * 10000 |
BANK_LIST | trigger_bank_list [] |
BANK_LIST | scaler_bank_list [] |
EQUIPMENT | equipment [] |
#define CRATE 0 |
Definition at line 54 of file mantrigfe.c.
#define N_ADC 4 |
Definition at line 49 of file mantrigfe.c.
#define N_SCLR 4 |
Definition at line 51 of file mantrigfe.c.
#define N_TDC 8 |
Definition at line 50 of file mantrigfe.c.
#define SLOT_ADC 1 |
Definition at line 56 of file mantrigfe.c.
#define SLOT_IO 23 |
Definition at line 55 of file mantrigfe.c.
#define SLOT_SCLR 3 |
Definition at line 58 of file mantrigfe.c.
#define SLOT_TDC 2 |
Definition at line 57 of file mantrigfe.c.
ADC0_BANK_STR | ( | adc0_bank_str | ) |
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 179 of file mantrigfe.c.
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 188 of file mantrigfe.c.
Frontend exit.
Runs at frontend shutdown. Disconnect hardware and set equipment status in ODB
Definition at line 172 of file mantrigfe.c.
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 149 of file mantrigfe.c.
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 209 of file mantrigfe.c.
Definition at line 247 of file mantrigfe.c.
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 195 of file mantrigfe.c.
Definition at line 226 of file mantrigfe.c.
Definition at line 265 of file mantrigfe.c.
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 202 of file mantrigfe.c.
INT display_period = 3000 |
Definition at line 37 of file mantrigfe.c.
EQUIPMENT equipment[] |
Definition at line 97 of file mantrigfe.c.
INT event_buffer_size = 10 * 10000 |
Definition at line 46 of file mantrigfe.c.
Definition at line 34 of file mantrigfe.c.
Definition at line 31 of file mantrigfe.c.
char* frontend_name = "mantrigfe" |
Definition at line 29 of file mantrigfe.c.
INT max_event_size = 10000 |
Definition at line 40 of file mantrigfe.c.
INT max_event_size_frag = 5 * 1024 * 1024 |
Definition at line 43 of file mantrigfe.c.
BANK_LIST scaler_bank_list[] |
Definition at line 86 of file mantrigfe.c.
BANK_LIST trigger_bank_list[] |
Definition at line 76 of file mantrigfe.c.