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