1#ifndef FDREADOUTLIBS_INCLUDE_FDREADOUTLIBS_CRTGRENOBLETYPEADAPTER_
2#define FDREADOUTLIBS_INCLUDE_FDREADOUTLIBS_CRTGRENOBLETYPEADAPTER_
15namespace fdreadoutlibs {
29 auto otherptr =
reinterpret_cast<const FrameType*
>(&other.
data);
30 return thisptr->
get_timestamp() < otherptr->get_timestamp() ? true :
false;
49 void fake_geoid(uint16_t crate_id, uint16_t slot_id, uint16_t stream_id) {
50 auto df =
reinterpret_cast<FrameType*
>(
reinterpret_cast<uint8_t*
>(&
data));
52 df->daq_header.stream_id = stream_id;
53 df->daq_header.crate_id = crate_id;
89 "Check your assumptions on CRTGrenobleTypeAdapter");
const constexpr std::size_t kCRTGrenobleFrameSize
PDS Frame with unphysical timestamp detected with ts
static const constexpr daqdataformats::FragmentType fragment_type
void fake_geoid(uint16_t crate_id, uint16_t slot_id, uint16_t stream_id)
char data[kCRTGrenobleFrameSize]
uint64_t get_timestamp() const
static const constexpr daqdataformats::SourceID::Subsystem subsystem
size_t get_payload_size()
void fake_timestamps(uint64_t first_timestamp, uint64_t=expected_tick_difference)
void set_timestamp(uint64_t ts)
void fake_frame_errors(std::vector< uint16_t > *)
static const constexpr size_t fixed_payload_size
static const constexpr uint64_t expected_tick_difference
bool operator<(const CRTGrenobleTypeAdapter &other) const
void fake_adc_pattern(int channel)