eudaq/eudaq — pull request #22 by msmk0 (2014-02-10 10:08:33+00:00)
Title: Add BORE event syncing

During recent testbeams with the Aconite telescope we encountered a problem
where the EORE of the NI producer would get stuck in flight and would end up
as the first event of the next run. This in turn confuses the FileReader since
the BORE of the next run will contain subevents with conflicting run numbers.

Examples w/ this behaviour can be found at http://www.physi.uni-heidelberg.de/~msmk/eudaq/.

This patch adds support for syncing the BORE subevents. When opening a file
the FileReader will drop subevents until every subevent is a BORE. It gives up
after three tries similar to the current syncing code for regular events.