LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
EventAuxiliary.h
Go to the documentation of this file.
1 #ifndef canvas_Persistency_Provenance_EventAuxiliary_h
2 #define canvas_Persistency_Provenance_EventAuxiliary_h
3 // vim: set sw=2 expandtab :
4 
9 
10 #include <iosfwd>
11 
12 namespace art {
14  public:
15  static constexpr BranchType branch_type = InEvent;
17  Any = 0,
18  Align = 1,
19  Calib = 2,
20  Cosmic = 3,
21  Data = 4,
22  Mc = 5,
23  Raw = 6,
24  Test = 7
25  };
26 
28  EventAuxiliary(EventID const& theId,
29  Timestamp const& theTime,
30  bool isReal,
31  ExperimentType eType = Any,
32  ProcessHistoryID const& phid = {});
33 
34  Timestamp const& time() const noexcept;
35  EventID const& id() const noexcept;
36  EventID const& eventID() const noexcept;
37  RunID const& runID() const noexcept;
38  SubRunID const& subRunID() const noexcept;
39  RunNumber_t run() const noexcept;
40  SubRunNumber_t subRun() const noexcept;
41  EventNumber_t event() const noexcept;
42  bool isRealData() const noexcept;
44  bool operator==(EventAuxiliary const& other) const noexcept;
45  void write(std::ostream& os) const;
46 
47  ProcessHistoryID const& processHistoryID() const noexcept;
49 
50  private:
51  // most recent process that put a RunProduct into this run
52  // is the last on the list, this defines what "latest" is
54 
57  bool isRealData_{false};
59  };
60  std::ostream& operator<<(std::ostream&, const EventAuxiliary&);
61 } // namespace art
62 
63 #endif /* canvas_Persistency_Provenance_EventAuxiliary_h */
64 
65 // Local Variables:
66 // mode: c++
67 // End:
ProcessHistoryID const & processHistoryID() const noexcept
SubRunNumber_t subRun() const noexcept
void setProcessHistoryID(ProcessHistoryID const &)
EventID const & eventID() const noexcept
SubRunID const & subRunID() const noexcept
STL namespace.
EventAuxiliary::ExperimentType experimentType() const noexcept
RunNumber_t run() const noexcept
std::ostream & operator<<(std::ostream &os, const GroupSelector &gs)
void write(std::ostream &os) const
IDNumber_t< Level::SubRun > SubRunNumber_t
Definition: IDNumber.h:119
RunID const & runID() const noexcept
ProcessHistoryID processHistoryID_
IDNumber_t< Level::Event > EventNumber_t
Definition: IDNumber.h:118
ExperimentType experimentType_
BranchType
Definition: BranchType.h:20
Definition: MVAAlg.h:12
bool isRealData() const noexcept
static constexpr BranchType branch_type
Timestamp const & time() const noexcept
Event finding and building.
IDNumber_t< Level::Run > RunNumber_t
Definition: IDNumber.h:120