EventID.cc
Go to the documentation of this file.
2 
3 #include <ostream>
4 
5 std::ostream&
6 art::operator<<(std::ostream& os, EventID const& iID)
7 {
8  os << iID.subRun_ << " event: ";
9  if (iID.isFlush()) {
10  os << "FLUSH";
11  } else if (iID.isValid()) {
12  os << iID.event_;
13  } else {
14  os << "INVALID";
15  }
16  return os;
17 }
bool isValid() const
Definition: EventID.h:122
bool isFlush() const
Definition: EventID.h:128
std::ostream & operator<<(std::ostream &os, const GroupSelector &gs)
SubRunID subRun_
Definition: EventID.h:75
EventNumber_t event_
Definition: EventID.h:76