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 
8 
9 #include <iosfwd>
10 
11 namespace art {
13  public:
14  static constexpr BranchType branch_type = InEvent;
16  Any = 0,
17  Align = 1,
18  Calib = 2,
19  Cosmic = 3,
20  Data = 4,
21  Mc = 5,
22  Raw = 6,
23  Test = 7
24  };
25 
28  EventAuxiliary(EventID const& theId,
29  Timestamp const& theTime,
30  bool isReal,
31  ExperimentType eType = Any);
36 
37  Timestamp const& time() const noexcept;
38  EventID const& id() const noexcept;
39  EventID const& eventID() const noexcept;
40  RunID const& runID() const noexcept;
41  SubRunID const& subRunID() const noexcept;
42  RunNumber_t run() const noexcept;
43  SubRunNumber_t subRun() const noexcept;
44  EventNumber_t event() const noexcept;
45  bool isRealData() const noexcept;
47  bool operator==(EventAuxiliary const& other) const noexcept;
48  void write(std::ostream& os) const;
49 
50  private:
53  bool isRealData_{false};
55  };
56  std::ostream& operator<<(std::ostream&, const EventAuxiliary&);
57 } // namespace art
58 
59 #endif /* canvas_Persistency_Provenance_EventAuxiliary_h */
60 
61 // Local Variables:
62 // mode: c++
63 // End:
SubRunNumber_t subRun() const noexcept
EventID const & eventID() const noexcept
SubRunID const & subRunID() const noexcept
A Test class.
Definition: class.h:3
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
EventAuxiliary & operator=(EventAuxiliary const &)
IDNumber_t< Level::SubRun > SubRunNumber_t
Definition: IDNumber.h:119
RunID const & runID() const noexcept
IDNumber_t< Level::Event > EventNumber_t
Definition: IDNumber.h:118
ExperimentType experimentType_
BranchType
Definition: BranchType.h:20
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