LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
SubRunAuxiliary.h
Go to the documentation of this file.
1 #ifndef canvas_Persistency_Provenance_SubRunAuxiliary_h
2 #define canvas_Persistency_Provenance_SubRunAuxiliary_h
3 // vim: set sw=2 expandtab :
4 
10 
11 #include <iosfwd>
12 
13 // Auxiliary subRun data that is persistent
14 
15 namespace art {
16 
18  public:
19  static constexpr BranchType branch_type = InSubRun;
20 
22 
23  SubRunAuxiliary(SubRunID const& theId,
26 
28  SubRunNumber_t subrun,
31 
33  Timestamp endTime = {}) const;
34 
35  void write(std::ostream& os) const;
36 
37  ProcessHistoryID const& processHistoryID() const noexcept;
38  void setProcessHistoryID(ProcessHistoryID const& phid);
39 
40  SubRunID const& id() const noexcept;
41  SubRunID const& subRunID() const noexcept;
42  RunID const& runID() const noexcept;
43  RunNumber_t run() const noexcept;
44  SubRunNumber_t subRun() const noexcept;
45 
46  Timestamp const& beginTime() const noexcept;
47  Timestamp const& endTime() const noexcept;
48 
49  void setRangeSetID(unsigned const id) const;
50  unsigned rangeSetID() const noexcept;
51 
52  bool mergeAuxiliary(SubRunAuxiliary const&);
53 
54  private:
55  SubRunAuxiliary(SubRunID const& id,
56  Timestamp beginTime,
59  unsigned rangeSetID);
60 
62  mutable unsigned rangeSetID_{-1u};
66  };
67 
68  std::ostream& operator<<(std::ostream&, SubRunAuxiliary const&);
69 
70 } // namespace art
71 
72 #endif /* canvas_Persistency_Provenance_SubRunAuxiliary_h */
73 
74 // Local Variables:
75 // mode: c++
76 // End:
RunID const & runID() const noexcept
void write(std::ostream &os) const
void setProcessHistoryID(ProcessHistoryID const &phid)
ProcessHistoryID processHistoryID_
SubRunID const & subRunID() const noexcept
SubRunNumber_t subRun() const noexcept
std::ostream & operator<<(std::ostream &os, const GroupSelector &gs)
unsigned rangeSetID() const noexcept
static constexpr BranchType branch_type
bool mergeAuxiliary(SubRunAuxiliary const &)
IDNumber_t< Level::SubRun > SubRunNumber_t
Definition: IDNumber.h:119
Timestamp const & endTime() const noexcept
RunNumber_t run() const noexcept
void setRangeSetID(unsigned const id) const
SubRunAuxiliary duplicateWith(Timestamp beginTime, Timestamp endTime={}) const
BranchType
Definition: BranchType.h:20
ProcessHistoryID const & processHistoryID() const noexcept
Definition: MVAAlg.h:12
Timestamp const & beginTime() const noexcept
IDNumber_t< Level::Run > RunNumber_t
Definition: IDNumber.h:120