LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ResultsAuxiliary.h
Go to the documentation of this file.
1 #ifndef canvas_Persistency_Provenance_ResultsAuxiliary_h
2 #define canvas_Persistency_Provenance_ResultsAuxiliary_h
3 // vim: set sw=2 expandtab :
4 
8 
9 #include <iosfwd>
10 #include <set>
11 
12 namespace art {
14  public:
15  static constexpr BranchType branch_type = InResults;
16 
17  void write(std::ostream& os) const;
18 
19  ProcessHistoryID const&
21  {
22  return processHistoryID_;
23  }
24 
25  void
27  {
28  processHistoryID_ = phid;
29  }
30 
31  private:
32  // most recent process that put a RunProduct into this run
33  // is the last on the list, this defines what "latest" is
35 
36  // allEventsProcessHistories_ contains all the ProcessHistoryIDs for all
37  // events in this run seen so far.
38  std::set<ProcessHistoryID> allEventsProcessHistories_{};
39  };
40 
41  inline std::ostream&
42  operator<<(std::ostream& os, ResultsAuxiliary const& p)
43  {
44  p.write(os);
45  return os;
46  }
47 
48 }
49 #endif /* canvas_Persistency_Provenance_ResultsAuxiliary_h */
50 
51 // Local Variables:
52 // mode: c++
53 // End:
ProcessHistoryID const & processHistoryID() const
std::ostream & operator<<(std::ostream &os, const GroupSelector &gs)
ProcessHistoryID processHistoryID_
std::set< ProcessHistoryID > allEventsProcessHistories_
static constexpr BranchType branch_type
void setProcessHistoryID(ProcessHistoryID const &phid)
void write(std::ostream &os) const
BranchType
Definition: BranchType.h:20
Definition: MVAAlg.h:12