MIDAS
|
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <stdlib.h>
#include "midas.h"
#include "mfe.h"
#include <stdint.h>
#include <iostream>
#include <sstream>
#include <unistd.h>
#include "math.h"
#include <sys/time.h>
Go to the source code of this file.
Macros | |
#define | SIMDAQSETTINGS_STR(_name) |
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_trigger_event (char *pevent, INT off) |
INT | read_scaler_event (char *pevent, INT off) |
Scaler event readout. | |
BOOL | wait_end_cycle (int transition, BOOL first) |
SIMDAQSETTINGS_STR (simdaqsettings_str) | |
INT | poll_event (INT source, INT count, BOOL test) |
INT | interrupt_configure (INT cmd, INT source, POINTER_T adr) |
double | sampleNormal () |
Variables | |
const char * | frontend_name = "fesimdaq" |
const char * | frontend_file_name = __FILE__ |
BOOL | frontend_call_loop = TRUE |
INT | display_period = 0 |
INT | max_event_size = 3 * 1024 * 1024 |
INT | max_event_size_frag = 2 * 1024 * 1024 |
INT | event_buffer_size = 20 * 1000000 |
void ** | info |
char | strin [256] |
HNDLE | hSet |
EQUIPMENT | equipment [] |
BOOL | finished_readout =FALSE |
int | nremaining = -1 |
Definition at line 140 of file fesimdaq.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 181 of file fesimdaq.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 191 of file fesimdaq.cxx.
Frontend exit.
Runs at frontend shutdown. Disconnect hardware and set equipment status in ODB
Definition at line 173 of file fesimdaq.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 152 of file fesimdaq.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 212 of file fesimdaq.cxx.
Definition at line 251 of file fesimdaq.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 198 of file fesimdaq.cxx.
Definition at line 230 of file fesimdaq.cxx.
Scaler event readout.
Scaler event readout routine. Not used in this example.
[in] | pevent | Pointer to event buffer |
[in] | off | Caller info (unused here), see mfe.c |
Definition at line 295 of file ebfe.cxx.
Definition at line 277 of file fesimdaq.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 205 of file fesimdaq.cxx.
double sampleNormal | ( | ) |
Definition at line 267 of file fesimdaq.cxx.
SIMDAQSETTINGS_STR | ( | simdaqsettings_str | ) |
Definition at line 123 of file fesimdaq.cxx.
INT display_period = 0 |
Definition at line 31 of file fesimdaq.cxx.
EQUIPMENT equipment[] |
Definition at line 69 of file fesimdaq.cxx.
INT event_buffer_size = 20 * 1000000 |
Definition at line 40 of file fesimdaq.cxx.
Definition at line 119 of file fesimdaq.cxx.
Definition at line 28 of file fesimdaq.cxx.
Definition at line 25 of file fesimdaq.cxx.
Definition at line 23 of file fesimdaq.cxx.
HNDLE hSet |
Definition at line 44 of file fesimdaq.cxx.
void** info |
Definition at line 41 of file fesimdaq.cxx.
INT max_event_size = 3 * 1024 * 1024 |
Definition at line 34 of file fesimdaq.cxx.
INT max_event_size_frag = 2 * 1024 * 1024 |
Definition at line 37 of file fesimdaq.cxx.
int nremaining = -1 |
Definition at line 121 of file fesimdaq.cxx.
char strin[256] |
Definition at line 42 of file fesimdaq.cxx.