Go to the source code of this file.
Defines | |
#define | SERVER_CACHE_SIZE 100000 |
Functions | |
INT | source_scan (INT fmt, EQUIPMENT_INFO *eq_info) |
INT | eb_begin_of_run (INT, char *, char *) |
INT | eb_end_of_run (INT, char *) |
INT | eb_user (INT, BOOL mismatch, EBUILDER_CHANNEL *, EVENT_HEADER *, void *, INT *) |
|
|
|
|
|
|
|
|
|
dox************************************************************** |
|
Definition at line 856 of file mevb.c. Referenced by scan_fragment(). |
|
Hook to the event builder task at PreStart transition.
|
|
Hook to the event builder task at completion of event collection after receiving the Stop transition.
|
|
|
|
Hook to the event builder task after the reception of all fragments of the same serial number. The destination event has already the final EVENT_HEADER setup with the data size set to 0. It is than possible to add private data at this point using the proper bank calls. The ebch[] array structure points to nfragment channel structure with the following content: typedef struct { char name[32]; // Fragment name (Buffer name). DWORD serial; // Serial fragment number. char *pfragment; // Pointer to fragment (EVENT_HEADER *) ... } EBUILDER_CHANNEL; The correct code for including your own MIDAS bank is shown below where TID_xxx is one of the valid Bank type starting with TID_ for midas format or xxx_BKTYPE for Ybos data format. bank_name is a 4 character descriptor. pdata has to be declared accordingly with the bank type. Refers to the ebuser.c source code for further description. It is not possible to mix within the same destination event different event format!
// Event is empty, fill it with BANK_HEADER // If you need to add your own bank at this stage bk_init(pevent); bk_create(pevent, bank_name, TID_xxxx, &pdata); *pdata++ = ...; *dest_size = bk_close(pevent, pdata); pheader->data_size = *dest_size + sizeof(EVENT_HEADER); For YBOS format, use the following example.
ybk_init(pevent); ybk_create(pevent, "EBBK", I4_BKTYPE, &pdata); *pdata++ = 0x12345678; *pdata++ = 0x87654321; *dest_size = ybk_close(pevent, pdata); *dest_size *= 4; pheader->data_size = *dest_size + sizeof(YBOS_BANK_HEADER);
Definition at line 222 of file ebuser.c. Referenced by source_scan(). |
|
|
|
Definition at line 121 of file ebuser.c. Referenced by main(). |
|
Definition at line 115 of file ebuser.c. Referenced by main(). |
|
|
|
Definition at line 704 of file mevb.c. Referenced by main(), source_booking(), and source_unbooking(). |
|
Definition at line 716 of file mevb.c. Referenced by close_buffers(). |
|
Definition at line 285 of file mevb.c. Referenced by main(). |
|
|
|
|
|
Definition at line 358 of file mevb.c. Referenced by main(). |
|
Definition at line 750 of file mevb.c. Referenced by tr_start(). |
|
Scan all the fragment source once per call.
Definition at line 905 of file mevb.c. Referenced by scan_fragment(). |
|
Definition at line 820 of file mevb.c. Referenced by close_buffers(), and main(). |
|
|
|
|
|
Referenced by eb_yfragment_add(), and source_scan(). |
|
Definition at line 101 of file mevb.c. Referenced by close_buffers(), scan_fragment(), and tr_start(). |
|
|
|
|
|
Definition at line 99 of file mevb.c. Referenced by scan_fragment(), and source_scan(). |
|
Definition at line 92 of file mevb.c. Referenced by bm_open_buffer(), bm_push_event(), load_fragment(), and main(). |
|
|
|
Definition at line 94 of file mevb.c. Referenced by load_fragment(), and source_scan(). |
|
|
|
Definition at line 81 of file mevb.c. Referenced by eb_user(), free_event_buffer(), handFlush(), load_fragment(), main(), scan_fragment(), source_booking(), source_scan(), and source_unbooking(). |
|
Definition at line 80 of file mevb.c. Referenced by eb_user(), handFlush(), main(), source_booking(), source_scan(), and tr_start(). |
|
|
|
|
|
Definition at line 90 of file mevb.c. Referenced by main(). |
|
Definition at line 99 of file frontend.c. |
|
|
|
|
|
|
|
|
|
Definition at line 95 of file mevb.c. Referenced by load_fragment(). |
|
|
|
|
|
|
|
|
Definition at line 95 of file mevb.c. Referenced by cm_connect_client(), cm_exist(), cm_set_client_info(), cm_shutdown(), cm_transition(), db_copy(), db_create_record(), db_save_xml_key(), and load_fragment(). |
|
Definition at line 100 of file mevb.c. Referenced by scan_fragment(). |
|
Definition at line 85 of file mevb.c. Referenced by scan_fragment(). |
|
|
|
|
|
Definition at line 104 of file mevb.c. Referenced by load_fragment(), and source_scan(). |
|
Definition at line 93 of file mevb.c. Referenced by load_fragment(), source_booking(), source_scan(), and source_unbooking(). |
|
|
|
|
|
Definition at line 102 of file mevb.c. Referenced by close_buffers(). |
|
Definition at line 98 of file mevb.c. Referenced by main(). |