-
Notifications
You must be signed in to change notification settings - Fork 1
Description
See #180 (comment) for context.
When doing pulse-skipping, We need a reliable way to define a reference start time of the run, so we can determine to which pulse in a stride the events are coming from.
The reference time needs to be fixed, in case the data comes in in chunks (cannot simply use the min event_time_offset for each new piece of data).
Some pulses might have no events, so pulses are not always consecutive.
Using a global reference like epoch may work, but it seems difficult to know only from that if the filewriter started recording in the middle of a frame, or at the start of a frame.
It seems the only way would be to look at the open/close times of the pulse-skipping chopper and determine pulse indices from that.
This sounds complicated as we would need to flag which is the pulse-skipping chopper, propagate the open-close times back to the source, and assign pulse indices. The open-close times would need to be in the global timing reference, probably using the chopper TDC time stamps...