LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
SubRunAuxiliary.cc
Go to the documentation of this file.
2 #include <ostream>
3 
4 void
5 art::SubRunAuxiliary::write(std::ostream& os) const
6 {
7  os << "Process History ID = " << processHistoryID_ << std::endl;
8  os << id_ << std::endl;
9 }
10 
11 bool
13 {
15  newAux.beginTime() == Timestamp::invalidTimestamp()) {
17  } else if (newAux.beginTime() < beginTime_) {
18  beginTime_ = newAux.beginTime();
19  }
20 
22  newAux.endTime() == Timestamp::invalidTimestamp()) {
24  } else if (newAux.endTime() > endTime_) {
25  endTime_ = newAux.endTime();
26  }
27 
28  // Keep the process history ID that is in the preexisting principal
29  // It may have been updated to include the current process.
30  // There is one strange other case where the two ProcessHistoryIDs
31  // could be different which should not be important and we just ignore.
32  // There could have been previous processes which only dropped products.
33  // These processes could have dropped the same branches but had different
34  // process names ... Ignore this.
35 
36  if (id_ != newAux.id())
37  return false;
38  return true;
39 }
void write(std::ostream &os) const
SubRunID const & id() const
Timestamp const & endTime() const
ProcessHistoryID processHistoryID_
Timestamp const & beginTime() const
static constexpr Timestamp invalidTimestamp()
Definition: Timestamp.h:83
bool mergeAuxiliary(SubRunAuxiliary const &newAux)