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