LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 // ResultsAuxiliary
5 //
6 // Auxiliary information stored about results.
7 //
9 
10 #include <iosfwd>
11 #include <set>
12 
17 
18 // Auxiliary run data that is persistent
19 
20 namespace art {
21  class ResultsAuxiliary;
22 }
23 
25 public:
26  static constexpr BranchType branch_type = InResults;
27 
29 
30  void write(std::ostream& os) const;
31 
34  {
35  return processHistoryID_;
36  }
37 
38  void
40  {
41  processHistoryID_ = phid;
42  }
43 
44  bool mergeAuxiliary(ResultsAuxiliary const& aux);
45 
46  // most recent process that put a RunProduct into this run
47  // is the last on the list, this defines what "latest" is
49 
50  // allEventsProcessHistories_ contains all the ProcessHistoryIDs for all
51  // events in this run seen so far.
52  std::set<ProcessHistoryID> allEventsProcessHistories_;
53 };
54 
55 inline std::ostream&
56 operator<<(std::ostream& os, const art::ResultsAuxiliary& p)
57 {
58  p.write(os);
59  return os;
60 }
61 
62 #endif /* canvas_Persistency_Provenance_ResultsAuxiliary_h */
63 
64 // Local Variables:
65 // mode: c++
66 // End:
std::ostream & operator<<(std::ostream &os, EDAnalyzer::Table< T > const &t)
Definition: EDAnalyzer.h:184
bool mergeAuxiliary(ResultsAuxiliary const &aux)
void setProcessHistoryID(ProcessHistoryID const &phid) const
ProcessHistoryID & processHistoryID() const
ProcessHistoryID processHistoryID_
std::set< ProcessHistoryID > allEventsProcessHistories_
static constexpr BranchType branch_type
void write(std::ostream &os) const
BranchType
Definition: BranchType.h:18
HLT enums.