AlcapDAQ
1
|
Go to the source code of this file.
Functions | |
INT | handFlush (INT) |
INT | source_booking (INT nfrag) |
INT | eb_mfragment_add (char *pdest, char *psrce, INT *size) |
INT | eb_yfragment_add (char *pdest, char *psrce, INT *size) |
INT | eb_begin_of_run (INT, char *, char *) |
INT | eb_end_of_run (INT, char *) |
INT | eb_user (INT, EBUILDER_CHANNEL *, EVENT_HEADER *, void *, INT *) |
INT | ybos_event_swap (DWORD *pevt) |
INT | tr_prestart (INT rn, char *error) |
INT | tr_stop (INT rn, char *error) |
void | free_event_buffer (INT nfrag) |
INT | source_unbooking (INT nfrag) |
INT | source_scan (INT fmt, INT nfragment, HNDLE dest_hBuf, char *dest_event) |
int | main (unsigned int argc, char **argv) |
Variables | |
EBUILDER_SETTINGS | ebset |
EBUILDER_STATISTICS | ebstat |
EBUILDER_CHANNEL | ebch [MAX_CHANNELS] |
DWORD | max_event_size = MAX_EVENT_SIZE |
HNDLE | hDB |
HNDLE | hKey |
HNDLE | hStatKey |
BOOL | debug =FALSE |
BOOL | debug1 =FALSE |
BOOL | abort_requested = FALSE |
BOOL | stop_requested = TRUE |
BOOL | stopped = TRUE |
BOOL | wheel = FALSE |
INT | run_state =0 |
DWORD | start_time = 0 |
DWORD | stop_time =0 |
DWORD | request_stop_time =0 |
DWORD | gbl_bytes_sent =0 |
DWORD | gbl_events_sent =0 |
DWORD | cdemask =0 |
INT | gbl_run =0 |
INT(* | meb_fragment_add )(char *, char *, INT *) |
INT eb_begin_of_run | ( | INT | , |
char * | , | ||
char * | |||
) |
Hook to the event builder task at PreStart transition.
rn | run number |
UserField | argument from /Ebuilder/Settings |
error | error string to be passed back to the system. |
eb_begin_of_run()
Hook to the event builder task at PreStart transition. {verbatim} {verbatim}
rn | run number |
UserField | argument from /Ebuilder/Settings |
error | error string to be passed back to the system. |
eb_begin_of_run()
Hook to the event builder task at PreStart transition. {verbatim} {verbatim}
rn | run number |
UserField | argument from /Ebuilder/Settings |
error | error string to be passed back to the system. |
Definition at line 145 of file ebuser.cpp.
References compress_load_all(), EB_SUCCESS, ebch, ebset, enabled, FALSE, hDB, MAX_CHANNELS, NUMCRATES, size, sprintf(), EBUILDER_SETTINGS::trigger_mask, and EBUILDER_CHANNEL::trigger_mask.
Referenced by tr_prestart(), and tr_start().
INT eb_end_of_run | ( | INT | , |
char * | |||
) |
Hook to the event builder task at completion of event collection after receiving the Stop transition.
rn | run number |
error | error string to be passed back to the system. |
eb_end_of_run()
Hook to the event builder task at completion of event collection after receiving the Stop transition. {verbatim} {verbatim}
rn | run number |
error | error string to be passed back to the system. |
eb_end_of_run()
Hook to the event builder task at completion of event collection after receiving the Stop transition. {verbatim} {verbatim}
rn | run number |
error | error string to be passed back to the system. |
Definition at line 193 of file ebuser.cpp.
INT eb_mfragment_add | ( | char * | pdest, |
char * | psrce, | ||
INT * | size | ||
) |
INT eb_user | ( | INT | , |
EBUILDER_CHANNEL * | , | ||
EVENT_HEADER * | , | ||
void * | , | ||
INT * | |||
) |
Definition at line 187 of file old_ebuser.cpp.
INT eb_yfragment_add | ( | char * | pdest, |
char * | psrce, | ||
INT * | size | ||
) |
void free_event_buffer | ( | INT | nfrag) |
Definition at line 292 of file old_mevb.cpp.
References i, and EBUILDER_CHANNEL::pfragment.
INT handFlush | ( | INT | nfragment) |
int main | ( | unsigned int | argc, |
char ** | argv | ||
) |
Definition at line 658 of file old_mevb.cpp.
References abort_requested, actual_millitime, bars, EBUILDER_SETTINGS::buffer, cdemask, cm_get_environment(), debug, dest_event, eb_end_of_run(), EB_ERROR, eb_mfragment_add(), EB_SKIP, EB_SUCCESS, EB_USER_ERROR, eb_yfragment_add(), EBUILDER, EBUILDER_CHANNEL, EBUILDER_STATISTICS::events_per_sec_, EBUILDER_STATISTICS::events_sent, expt_name, FALSE, EBUILDER_SETTINGS::format, free_event_buffer(), gbl_bytes_sent, gbl_events_sent, gbl_run, handFlush(), hDB, hKey, host_name, EBUILDER_SETTINGS::hostname, hStatKey, hSubkey, i, i_bar, EBUILDER_STATISTICS::kbytes_per_sec_, key, last_time, MAX_CHANNELS, max_event_size, meb_fragment_add, EBUILDER_CHANNEL::name, nfragment, printf(), request_stop_time, run_state, size, source_scan(), source_unbooking(), sprintf(), start_time, EBUILDER_CHANNEL::stat, status, stop_requested, stop_time, timeout, EBUILDER_CHANNEL::timeout, TIMEOUT, tr_prestart, tr_stop, TRUE, usage(), and wheel.
INT source_booking | ( | INT | nfrag) |
Definition at line 338 of file old_mevb.cpp.
References EBUILDER_CHANNEL::buffer, debug, EBUILDER_SETTINGS::emask, EBUILDER_CHANNEL::event_id, free_event_buffer(), EBUILDER_CHANNEL::hBuf, i, max_event_size, EBUILDER_CHANNEL::pfragment, printf(), EBUILDER_CHANNEL::req_id, EBUILDER_CHANNEL::set, status, SUCCESS, EBUILDER_CHANNEL::trigger_mask, and EBUILDER_SETTINGS_CH::trigger_mask.
INT source_scan | ( | INT | fmt, |
INT | nfragment, | ||
HNDLE | dest_hBuf, | ||
char * | dest_event | ||
) |
Definition at line 486 of file old_mevb.cpp.
References abort_requested, bars, cdemask, debug, debug1, EB_ERROR, EB_SKIP, EB_SUCCESS, eb_user(), EBUILDER_SETTINGS::emask, EBUILDER_SETTINGS_CH::emask, EBUILDER_SETTINGS::event_id, event_mismatch, EBUILDER_STATISTICS::events_sent, FALSE, found, gbl_bytes_sent, gbl_events_sent, i, i_bar, max_event_size, meb_fragment_add, nfragment, EBUILDER_CHANNEL::pfragment, printf(), psbh, EBUILDER_CHANNEL::serial, EBUILDER_CHANNEL::set, size, sprintf(), EBUILDER_CHANNEL::stat, status, SUCCESS, timeout, EBUILDER_CHANNEL::timeout, EBUILDER_SETTINGS::trigger_mask, TRUE, EBUILDER_SETTINGS::user_build, wheel, and ybos_event_swap().
INT source_unbooking | ( | INT | nfrag) |
Definition at line 422 of file old_mevb.cpp.
References debug, EB_SUCCESS, free_event_buffer(), i, printf(), and status.
INT tr_prestart | ( | INT | rn, |
char * | error | ||
) |
Definition at line 225 of file old_mevb.cpp.
References abort_requested, cdemask, eb_begin_of_run(), EB_SUCCESS, FALSE, gbl_bytes_sent, gbl_events_sent, gbl_run, hDB, hStatKey, printf(), run_state, size, source_booking(), start_time, status, stop_requested, stopped, SUCCESS, and EBUILDER_SETTINGS::user_field.
INT tr_stop | ( | INT | rn, |
char * | error | ||
) |
Definition at line 279 of file old_mevb.cpp.
References printf(), request_stop_time, stop_requested, and TRUE.
INT ybos_event_swap | ( | DWORD * | pevt) |
BOOL abort_requested = FALSE |
Definition at line 61 of file old_mevb.cpp.
DWORD cdemask =0 |
Definition at line 67 of file old_mevb.cpp.
Referenced by main(), source_scan(), and tr_prestart().
BOOL debug =FALSE |
Definition at line 59 of file old_mevb.cpp.
BOOL debug1 =FALSE |
Definition at line 59 of file old_mevb.cpp.
EBUILDER_CHANNEL ebch[MAX_CHANNELS] |
Definition at line 54 of file old_mevb.cpp.
EBUILDER_SETTINGS ebset |
Definition at line 52 of file old_mevb.cpp.
EBUILDER_STATISTICS ebstat |
Definition at line 53 of file old_mevb.cpp.
DWORD gbl_bytes_sent =0 |
Definition at line 66 of file old_mevb.cpp.
Referenced by main(), source_scan(), and tr_prestart().
DWORD gbl_events_sent =0 |
Definition at line 66 of file old_mevb.cpp.
Referenced by main(), source_scan(), and tr_prestart().
INT gbl_run =0 |
Definition at line 68 of file old_mevb.cpp.
Referenced by main(), and tr_prestart().
HNDLE hDB |
Definition at line 58 of file old_mevb.cpp.
HNDLE hKey |
Definition at line 58 of file old_mevb.cpp.
HNDLE hStatKey |
Definition at line 58 of file old_mevb.cpp.
DWORD max_event_size = MAX_EVENT_SIZE |
Definition at line 56 of file old_mevb.cpp.
INT(* meb_fragment_add)(char *, char *, INT *) |
Definition at line 70 of file old_mevb.cpp.
DWORD request_stop_time =0 |
Definition at line 65 of file old_mevb.cpp.
INT run_state =0 |
PROGRAM: crate.cpp DESCRIPTION: Control and readout of CAEN V1724 digitizers. author: V.Tishchenko date: 12-Aug-2012
Modifications:
Definition at line 64 of file old_mevb.cpp.
Referenced by close_buffers(), display(), frontend_init(), frontend_loop(), handFlush(), main(), read_trigger_event(), register_equipment(), scan_fragment(), scheduler(), tr_pause(), tr_prepause(), tr_prestart(), tr_prestop(), tr_resume(), tr_start(), and tr_stop().
DWORD start_time = 0 |
Definition at line 65 of file old_mevb.cpp.
Referenced by main(), register_equipment(), and tr_prestart().
BOOL stop_requested = TRUE |
Definition at line 61 of file old_mevb.cpp.
DWORD stop_time =0 |
Definition at line 65 of file old_mevb.cpp.
BOOL stopped = TRUE |
Definition at line 62 of file old_mevb.cpp.
Referenced by handFlush(), and tr_prestart().
BOOL wheel = FALSE |
Definition at line 63 of file old_mevb.cpp.