1#ifndef FDREADOUTLIBS_INCLUDE_FDREADOUTLIBS_DAPHNEETHTYPEADAPTER_
2#define FDREADOUTLIBS_INCLUDE_FDREADOUTLIBS_DAPHNEETHTYPEADAPTER_
15namespace fdreadoutlibs {
35 return std::forward_as_tuple(thisptr->get_timestamp(), thisptr->get_channel()) < std::forward_as_tuple(otherptr->get_timestamp(), otherptr->get_channel());
55 void fake_geoid(uint16_t crate_id, uint16_t slot_id, uint16_t stream_id) {
59 df->daq_header.slot_id = slot_id;
60 df->daq_header.stream_id = stream_id;
94 "Check your assumptions on DAPHNEEthEthTypeAdapter");
const constexpr std::size_t kDAPHNEEthSize
For DAPHNEEth the numbers are different. Header + (64 channels * 64 time slices) = 233[Bytes].
bool operator<(const DAPHNEEthTypeAdapter &other) const
uint64_t get_timestamp() const
void fake_adc_pattern(int)
static const constexpr daqdataformats::FragmentType fragment_type
void fake_timestamps(uint64_t first_timestamp, uint64_t=2048)
void fake_geoid(uint16_t crate_id, uint16_t slot_id, uint16_t stream_id)
void set_timestamp(uint64_t ts)
static const constexpr uint64_t expected_tick_difference
static const constexpr daqdataformats::SourceID::Subsystem subsystem
size_t get_payload_size()
char data[kDAPHNEEthSize]
void fake_frame_errors(std::vector< uint16_t > *)