00001 #include "artdaq-core/Data/RawEvent.hh"
00002 #include <ostream>
00003
00004 namespace artdaq {
00005 void detail::RawEventHeader::print(std::ostream& os) const
00006 {
00007 os << "Run " << run_id
00008 << ", Subrun " << subrun_id
00009 << ", Event " << event_id
00010 << ", SeqID " << sequence_id
00011 << ", TS " << timestamp
00012 << ", Complete? " << is_complete
00013 << ", Version " << static_cast<unsigned int>(version)
00014 << '\n';
00015 }
00016
00017 constexpr uint8_t detail::RawEventHeader::CURRENT_VERSION;
00018 void RawEvent::print(std::ostream& os) const
00019 {
00020 os << "Run " << runID()
00021 << ", Subrun " << subrunID()
00022 << ", Event " << eventID()
00023 << ", SeqID " << sequenceID()
00024 << ", TS " << timestamp()
00025 << ", FragCount " << numFragments()
00026 << ", WordCount " << wordCount()
00027 << ", Complete? " << isComplete()
00028 << '\n';
00029 for (auto const& frag : fragments_)
00030 {
00031 os << *frag << '\n';
00032 }
00033 }
00034 }