1 #ifndef dune_artdaq_Overlays_ToyFragment_hh 2 #define dune_artdaq_Overlays_ToyFragment_hh 4 #include "artdaq-core/Data/Fragment.hh" 6 #include "cetlib_except/exception.h" 18 std::ostream &
operator << (std::ostream &, ToyFragment
const &);
75 event_size_t event_size : 28;
76 event_size_t unused_1 : 4;
78 run_number_t run_number : 32;
103 return reinterpret_cast<adc_t
const *
>(
header_() + 1);
120 [&](adc_t
const adc) ->
bool {
121 return (adc >> daq_adc_bits); });
134 return (1ul << daq_adc_bits );
static constexpr size_t hdr_size_words()
std::ostream & operator<<(std::ostream &out, CTBFragment const &f)
adc_t const * findBadADC(int daq_adc_bits) const
ToyFragment(artdaq::Fragment const &f)
bool fastVerify(int daq_adc_bits) const
static constexpr size_t adcs_per_word_()
size_t total_adc_values() const
adc_t const * dataEnd() const
Header::event_size_t hdr_event_size() const
artdaq::Fragment const & artdaq_Fragment_
adc_t const * dataBegin() const
size_t adc_range(int daq_adc_bits)
Header const * header_() const
void checkADCData(int daq_adc_bits) const
Header::run_number_t hdr_run_number() const