1 #ifndef artdaq_dune_Overlays_SSPFragmentWriter_hh 2 #define artdaq_dune_Overlays_SSPFragmentWriter_hh 17 #include "artdaq-core/Data/Fragment.hh" 23 class SSPFragmentWriter;
69 if ( ! f.hasMetadata() || f.dataSizeBytes() > 0 ) {
70 throw cet::exception(
"Error in SSPFragmentWriter: Raw artdaq::Fragment object does not appear to consist of (and only of) its own header + the SSPFragment::Metadata object");
size_t calc_event_size_words_(size_t nAdcs)
artdaq::Fragment & artdaq_Fragment_
size_t total_adc_values() const
void set_hdr_run_number(Header::run_number_t run_number)
void resize(size_t nAdcs)
static constexpr size_t hdr_size_words()
SSPFragmentWriter(artdaq::Fragment &f)
static constexpr size_t adcs_per_word_()
static size_t adcs_to_words_(size_t nAdcs)
cet::coded_exception< error, detail::translate > exception