Skip to content

Event building

David-Leon Pohl requested to merge analysis_checks into development

This MR adds error mode hardened event building. The following error modes do not destroy event recognition and are tested in unit tests:

  • Event header(s) missing/not recognized: The event gets the following flags: E_STRUCT_WRONG & E_BCID_INC_ERROR & E_TRG_ID_INC_ERROR
  • Event header(s) with wrong BCID and trigger ID: If this is not a missing event header a new event is build. E_TRG_ID_INC_ERROR is set for the new event and E_STRUCT_WRONG is set for the old event.
  • BCID error, but trigger ID ok: E_BCID_INC_ERROR is set.
  • Trigger ID error, but BCID ok: E_TRG_ID_INC_ERROR is set

Additionally the relative BCID histogram is only filled from hit of events that have a proper event structure. This prevents the relative BCID histogram to look weird if event recognition fails in parts. Thus the relative BCID histogram is "just" a timing histogram now. Also a helper function is provided to translate raw data quickly and print to screen.

Edited by David-Leon Pohl

Merge request reports