Adjusts individual channel timing and merges channels back in time order.
More...
#include <TimeAdjuster.hpp>
|
|
ContextHandle * | _ctxh |
| |
|
std::array< int64_t, 4096 > | _chTimeCorrections |
| |
|
int64_t | _maxCorrection {0} |
| |
|
int64_t | _minCorrection {0} |
| |
|
int64_t | _correctionWidth {0} |
| |
|
int64_t | _tsPrev {0} |
| |
|
std::deque< DetectorEvent > | _queue |
| |
Adjusts individual channel timing and merges channels back in time order.
◆ getCorrection()
| int64_t pottu::TimeAdjuster::getCorrection |
( |
uint16_t |
ch | ) |
const |
|
inlinenoexcept |
Returns correction of the timestamp registered to a channel.
- Returns
- Registered correction or zero if channel is not registered.
◆ process()
Consumes detector events and returns different detector events.
- Parameters
-
| input | Detector events to consume. Do not use the events in input after this call. |
| output | Detector events (usually different than input) returned. |
Stage using this kind of process pattern typically holds a buffer of detector events.
Implements pottu::StageDetectorEventToDetectorEvent.
◆ setCorrection()
| void pottu::TimeAdjuster::setCorrection |
( |
uint16_t |
ch, |
|
|
int64_t |
correction |
|
) |
| |
|
inline |
Registers timestamp correction for a channel.
- Parameters
-
| ch | Channel the correction should be applied |
| correction | Correction in tics. Positive value delays the event. |
The documentation for this class was generated from the following file: