1#ifndef FDREADOUTLIBS_INCLUDE_FDREADOUTLIBS_TDEETHTYPEADAPTER_HPP_
2#define FDREADOUTLIBS_INCLUDE_FDREADOUTLIBS_TDEETHTYPEADAPTER_HPP_
15namespace fdreadoutlibs {
33 auto otherptr =
reinterpret_cast<const FrameType*
>(&other.
data);
34 return thisptr->
get_timestamp() < otherptr->get_timestamp() ? true :
false;
54 void fake_geoid(uint16_t crate_id, uint16_t slot_id, uint16_t stream_id) {
58 df->daq_header.slot_id = slot_id;
59 df->daq_header.stream_id = stream_id;
67 frame->
set_adc(channel, 0, 16383);
102 "Check your assumptions on TDEEthTypeAdapter");
const constexpr std::size_t kTDEEthSize
For TDEEth the numbers are different. Header + (64 channels * 64 time slices) = 7200[Bytes].
PDS Frame with unphysical timestamp detected with ts
void fake_frame_errors(std::vector< uint16_t > *)
void fake_geoid(uint16_t crate_id, uint16_t slot_id, uint16_t stream_id)
static const constexpr size_t fixed_payload_size
static const constexpr uint64_t samples_tick_difference
void fake_timestamps(uint64_t first_timestamp, uint64_t=2048)
static const constexpr daqdataformats::FragmentType fragment_type
void set_timestamp(uint64_t ts)
void fake_adc_pattern(int channel)
size_t get_payload_size()
uint64_t get_timestamp() const
static const constexpr daqdataformats::SourceID::Subsystem subsystem
static const constexpr uint64_t expected_tick_difference
bool operator<(const TDEEthTypeAdapter &other) const
static const constexpr uint64_t samples_per_frame