1 #ifndef dune_artdaq_Overlays_ToyFragmentWriter_hh 2 #define dune_artdaq_Overlays_ToyFragmentWriter_hh 17 #include "artdaq-core/Data/Fragment.hh" 23 class ToyFragmentWriter;
78 throw cet::exception(
"Error in ToyFragmentWriter: passed artdaq::Fragment object doesn't contain metadata");
82 throw cet::exception(
"Error in ToyFragmentWriter: passed artdaq::Fragment object already contains payload");
static constexpr size_t hdr_size_words()
static constexpr size_t adcs_per_word_()
size_t total_adc_values() const
void resize(size_t nAdcs)
static size_t adcs_to_words_(size_t nAdcs)
ToyFragmentWriter(artdaq::Fragment &f)
void set_hdr_run_number(Header::run_number_t run_number)
cet::coded_exception< error, detail::translate > exception
size_t calc_event_size_words_(size_t nAdcs)
artdaq::Fragment & artdaq_Fragment_