artdaq_core  v3_05_10
RawEvent.cc
1 #include "artdaq-core/Data/RawEvent.hh"
2 #include <ostream>
3 
4 namespace artdaq {
5 void RawEvent::print(std::ostream& os) const
6 {
7  os << "Run " << runID()
8  << ", Subrun " << subrunID()
9  << ", Event " << eventID()
10  << ", SeqID " << sequenceID()
11  << ", FragCount " << numFragments()
12  << ", WordCount " << wordCount()
13  << ", Complete? " << isComplete()
14  << '\n';
15  for (auto const& frag : fragments_)
16  {
17  os << *frag << '\n';
18  }
19 }
20 } // namespace artdaq
event_id_t eventID() const
Retrieve the event number from the RawEventHeader.
Definition: RawEvent.hh:228
subrun_id_t subrunID() const
Retrieve the subrun number from the RawEventHeader.
Definition: RawEvent.hh:227
sequence_id_t sequenceID() const
Retrieve the sequence id from the RawEventHeader.
Definition: RawEvent.hh:229
bool isComplete() const
Retrieve the value of the complete flag from the RawEventHeader.
Definition: RawEvent.hh:230
size_t numFragments() const
Return the number of fragments this RawEvent contains.
Definition: RawEvent.hh:214
void print(std::ostream &os) const
Print summary information about this RawEvent to the given stream.
Definition: RawEvent.cc:5
run_id_t runID() const
Retrieve the run number from the RawEventHeader.
Definition: RawEvent.hh:226
size_t wordCount() const
Return the sum of the word counts of all fragments in this RawEvent.
Definition: RawEvent.hh:219