1#ifndef FDREADOUTLIBS_INCLUDE_FDREADOUTLIBS_DAPHNESUPERCHUNKTYPEADAPTER_
2#define FDREADOUTLIBS_INCLUDE_FDREADOUTLIBS_DAPHNESUPERCHUNKTYPEADAPTER_
15namespace fdreadoutlibs {
36 return std::forward_as_tuple(thisptr->get_timestamp(), thisptr->get_channel()) < std::forward_as_tuple(otherptr->get_timestamp(), otherptr->get_channel());
48 frame->daq_header.timestamp_2 =
ts >> 32;
53 uint64_t ts_next = first_timestamp;
57 df->daq_header.timestamp_2 = ts_next >> 32;
62 void fake_geoid(uint16_t crate_id, uint16_t slot_id, uint16_t link_id) {
66 df->daq_header.link_id = link_id;
67 df->daq_header.crate_id = crate_id;
101 "Check your assumptions on DAPHNESuperChunkTypeAdapter");
const constexpr std::size_t kDAPHNENumFrames
For DAPHNE the numbers are different. 12[DAPHNE frames] x 454[32-bit words] x 4[Bytes per word] = 217...
const constexpr std::size_t kDAPHNEFrameSize
const constexpr std::size_t kDAPHNESuperChunkSize
PDS Frame with unphysical timestamp detected with ts
void fake_geoid(uint16_t crate_id, uint16_t slot_id, uint16_t link_id)
bool operator<(const DAPHNESuperChunkTypeAdapter &other) const
void set_timestamp(uint64_t ts)
static const constexpr daqdataformats::FragmentType fragment_type
size_t get_payload_size()
void fake_frame_errors(std::vector< uint16_t > *)
static const constexpr daqdataformats::SourceID::Subsystem subsystem
void fake_adc_pattern(int)
static const constexpr uint64_t expected_tick_difference
uint64_t get_timestamp() const
void fake_timestamps(uint64_t first_timestamp, uint64_t offset=expected_tick_difference)
char data[kDAPHNESuperChunkSize]