artdaq_core  v1_07_04
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
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 " << 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 }
subrun_id_t subrunID() const
Retrieve the subrun number from the RawEventHeader.
Definition: RawEvent.hh:211
sequence_id_t sequenceID() const
Retrieve the sequence id from the RawEventHeader.
Definition: RawEvent.hh:212
bool isComplete() const
Retrieve the value of the complete flag from the RawEventHeader.
Definition: RawEvent.hh:213
size_t numFragments() const
Return the number of fragments this RawEvent contains.
Definition: RawEvent.hh:197
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:210
size_t wordCount() const
Return the sum of the word counts of all fragments in this RawEvent.
Definition: RawEvent.hh:203