1#ifndef FDREADOUTLIBS_INCLUDE_FDREADOUTLIBS_DAPHNESTREAMSUPERCHUNKTYPEADAPTER_
2#define FDREADOUTLIBS_INCLUDE_FDREADOUTLIBS_DAPHNESTREAMSUPERCHUNKTYPEADAPTER_
30 auto otherptr =
reinterpret_cast<const FrameType*
>(&other.
data);
31 return thisptr->
get_timestamp() < otherptr->get_timestamp() ? true :
false;
43 frame->daq_header.timestamp_2 =
ts >> 32;
48 uint64_t ts_next = first_timestamp;
52 df->daq_header.timestamp_2 = ts_next >> 32;
91 "Check your assumptions on DAPHNESuperChunkTypeAdapter");
const constexpr std::size_t kDAPHNEStreamSuperChunkSize
const constexpr std::size_t kDAPHNEStreamNumFrames
For DAPHNE Stream the numbers are similar to DUNE-WIB 12[DAPHNE frames] x 472[Bytes] = 5664[Bytes]
const constexpr std::size_t kDAPHNEStreamFrameSize
PDS Frame with unphysical timestamp detected with ts
void fake_geoid(uint16_t, uint16_t, uint16_t)
void fake_adc_pattern(int)
bool operator<(const DAPHNEStreamSuperChunkTypeAdapter &other) const
constexpr size_t get_frame_size() const
uint64_t get_timestamp() const
static const constexpr daqdataformats::FragmentType fragment_type
constexpr size_t get_num_frames() const
constexpr size_t get_payload_size() const
static const constexpr uint64_t expected_tick_difference
static const constexpr daqdataformats::SourceID::Subsystem subsystem
char data[kDAPHNEStreamSuperChunkSize]
void fake_timestamps(uint64_t first_timestamp, uint64_t offset=64)
void fake_frame_errors(std::vector< uint16_t > *)
void set_timestamp(uint64_t ts)