![]() |
Project
|
Class for time synchronization of RawReader instances. More...
#include <RawReaderEventSync.h>
Class for time synchronization of RawReader instances.
To synchronize an event across several readout links, the time offset given in the event header is used. This class expects the distance of the event time stamp with respect to the time stamp of the synchronization pattern (or the first complete readout cycle in mode 2). This number corresponds to the number of received GBT frames in the receiver card (T-RORC / CRU). Since 8 frames are needed to complete a full readout cycle, the event offset is set to the next multiple of 8 (mFrames) of this distance, + one cycle to guarantee always a complete set. This is done for each link individually and the maximum of those time offsets is kept for every event. With that, each individual link can use the same (max.) time stamp to decode the data synchronously.