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 
19  public:
20  static constexpr BranchType branch_type = InSubRun;
21 
22  public:
24 
26 
27  SubRunAuxiliary(SubRunID const& theId,
28  Timestamp const& theTime,
29  Timestamp const& theEndTime);
30 
31  SubRunAuxiliary(RunNumber_t const theRun,
32  SubRunNumber_t const theSubRun,
33  Timestamp const& theTime,
34  Timestamp const& theEndTime);
35 
37 
39 
41 
43 
44  public:
45  void write(std::ostream& os) const;
46 
47  ProcessHistoryID const& processHistoryID() const noexcept;
48 
50 
51  SubRunID const& id() const noexcept;
52 
53  SubRunID const& subRunID() const noexcept;
54 
55  RunID const& runID() const noexcept;
56 
57  RunNumber_t run() const noexcept;
58 
59  SubRunNumber_t subRun() const noexcept;
60 
61  Timestamp const& beginTime() const noexcept;
62 
63  Timestamp const& endTime() const noexcept;
64 
65  void setEndTime(Timestamp const& time);
66 
67  void setRangeSetID(unsigned const id) const;
68 
69  unsigned rangeSetID() const noexcept;
70 
71  bool mergeAuxiliary(SubRunAuxiliary const&);
72 
73  public:
75 
76  mutable unsigned rangeSetID_{-1u};
77 
79 
81 
83  };
84 
85  std::ostream& operator<<(std::ostream&, SubRunAuxiliary const&);
86 
87 } // namespace art
88 
89 #endif /* canvas_Persistency_Provenance_SubRunAuxiliary_h */
90 
91 // Local Variables:
92 // mode: c++
93 // End:
RunID const & runID() const noexcept
void write(std::ostream &os) const
void setProcessHistoryID(ProcessHistoryID const &phid) const
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 & operator=(SubRunAuxiliary const &)
BranchType
Definition: BranchType.h:20
ProcessHistoryID const & processHistoryID() const noexcept
void setEndTime(Timestamp const &time)
Timestamp const & beginTime() const noexcept
IDNumber_t< Level::Run > RunNumber_t
Definition: IDNumber.h:120