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 {
13  class ResultsAuxiliary;
14 }
15 
17 public:
18  static constexpr BranchType branch_type = InResults;
19 
20  void write(std::ostream& os) const;
21 
24  {
25  return processHistoryID_;
26  }
27 
28  void
30  {
31  processHistoryID_ = phid;
32  }
33 
34  bool mergeAuxiliary(ResultsAuxiliary const& aux);
35 
36  // most recent process that put a RunProduct into this run
37  // is the last on the list, this defines what "latest" is
39 
40  // allEventsProcessHistories_ contains all the ProcessHistoryIDs for all
41  // events in this run seen so far.
42  std::set<ProcessHistoryID> allEventsProcessHistories_{};
43 };
44 
45 inline std::ostream&
46 operator<<(std::ostream& os, const art::ResultsAuxiliary& p)
47 {
48  p.write(os);
49  return os;
50 }
51 
52 #endif /* canvas_Persistency_Provenance_ResultsAuxiliary_h */
53 
54 // Local Variables:
55 // mode: c++
56 // End:
bool mergeAuxiliary(ResultsAuxiliary const &aux)
void setProcessHistoryID(ProcessHistoryID const &phid) const
ProcessHistoryID & processHistoryID() const
std::ostream & operator<<(std::ostream &os, const GroupSelector &gs)
ProcessHistoryID processHistoryID_
std::set< ProcessHistoryID > allEventsProcessHistories_
p
Definition: test.py:223
static constexpr BranchType branch_type
void write(std::ostream &os) const
BranchType
Definition: BranchType.h:20