Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
art::EventAuxiliary Class Reference

#include <EventAuxiliary.h>

Public Types

enum  ExperimentType {
  Any = 0, Align = 1, Calib = 2, Cosmic = 3,
  Data = 4, Mc = 5, Raw = 6, Test = 7
}
 

Public Member Functions

 ~EventAuxiliary ()
 
 EventAuxiliary ()
 
 EventAuxiliary (EventID const &theId, Timestamp const &theTime, bool isReal, ExperimentType eType=Any)
 
 EventAuxiliary (EventAuxiliary const &)
 
 EventAuxiliary (EventAuxiliary &&)
 
EventAuxiliaryoperator= (EventAuxiliary const &)
 
EventAuxiliaryoperator= (EventAuxiliary &&)
 
Timestamp const & time () const noexcept
 
EventID const & id () const noexcept
 
EventID const & eventID () const noexcept
 
RunID const & runID () const noexcept
 
SubRunID const & subRunID () const noexcept
 
RunNumber_t run () const noexcept
 
SubRunNumber_t subRun () const noexcept
 
EventNumber_t event () const noexcept
 
bool isRealData () const noexcept
 
EventAuxiliary::ExperimentType experimentType () const noexcept
 
bool operator== (EventAuxiliary const &other) const noexcept
 
void write (std::ostream &os) const
 

Static Public Attributes

static constexpr BranchType branch_type = InEvent
 

Private Attributes

EventID id_ {}
 
Timestamp time_ {}
 
bool isRealData_ {false}
 
ExperimentType experimentType_ {Any}
 

Detailed Description

Definition at line 12 of file EventAuxiliary.h.

Member Enumeration Documentation

Enumerator
Any 
Align 
Calib 
Cosmic 
Data 
Mc 
Raw 
Test 

Definition at line 15 of file EventAuxiliary.h.

Constructor & Destructor Documentation

art::EventAuxiliary::~EventAuxiliary ( )
default
art::EventAuxiliary::EventAuxiliary ( )
default
art::EventAuxiliary::EventAuxiliary ( EventID const &  theId,
Timestamp const &  theTime,
bool  isReal,
ExperimentType  eType = Any 
)

Definition at line 13 of file EventAuxiliary.cc.

17  : id_{theId}, time_{theTime}, isRealData_{isReal}, experimentType_{eType}
18  {}
ExperimentType experimentType_
art::EventAuxiliary::EventAuxiliary ( EventAuxiliary const &  )
default
art::EventAuxiliary::EventAuxiliary ( EventAuxiliary &&  )
default

Member Function Documentation

EventNumber_t art::EventAuxiliary::event ( ) const
noexcept

Definition at line 69 of file EventAuxiliary.cc.

70  {
71  return id_.event();
72  }
EventNumber_t event() const
Definition: EventID.h:116
EventID const & art::EventAuxiliary::eventID ( ) const
noexcept

Definition at line 39 of file EventAuxiliary.cc.

40  {
41  return id();
42  }
EventID const & id() const noexcept
EventAuxiliary::ExperimentType art::EventAuxiliary::experimentType ( ) const
noexcept

Definition at line 81 of file EventAuxiliary.cc.

82  {
83  return experimentType_;
84  }
ExperimentType experimentType_
EventID const & art::EventAuxiliary::id ( ) const
noexcept

Definition at line 33 of file EventAuxiliary.cc.

34  {
35  return id_;
36  }
bool art::EventAuxiliary::isRealData ( ) const
noexcept

Definition at line 75 of file EventAuxiliary.cc.

76  {
77  return isRealData_;
78  }
EventAuxiliary & art::EventAuxiliary::operator= ( EventAuxiliary const &  )
default
EventAuxiliary & art::EventAuxiliary::operator= ( EventAuxiliary &&  )
default
bool art::EventAuxiliary::operator== ( EventAuxiliary const &  other) const
noexcept

Definition at line 87 of file EventAuxiliary.cc.

88  {
89  return (id_ == other.id_) && (time_ == other.time_) &&
90  (isRealData_ == other.isRealData_) &&
91  (experimentType_ == other.experimentType_);
92  }
ExperimentType experimentType_
RunNumber_t art::EventAuxiliary::run ( ) const
noexcept

Definition at line 57 of file EventAuxiliary.cc.

58  {
59  return id_.run();
60  }
RunNumber_t run() const
Definition: EventID.h:98
RunID const & art::EventAuxiliary::runID ( ) const
noexcept

Definition at line 45 of file EventAuxiliary.cc.

46  {
47  return id_.runID();
48  }
RunID const & runID() const
Definition: EventID.h:92
SubRunNumber_t art::EventAuxiliary::subRun ( ) const
noexcept

Definition at line 63 of file EventAuxiliary.cc.

64  {
65  return id_.subRun();
66  }
SubRunNumber_t subRun() const
Definition: EventID.h:110
SubRunID const & art::EventAuxiliary::subRunID ( ) const
noexcept

Definition at line 51 of file EventAuxiliary.cc.

52  {
53  return id_.subRunID();
54  }
SubRunID const & subRunID() const
Definition: EventID.h:104
Timestamp const & art::EventAuxiliary::time ( ) const
noexcept

Definition at line 27 of file EventAuxiliary.cc.

28  {
29  return time_;
30  }
void art::EventAuxiliary::write ( std::ostream &  os) const

Definition at line 95 of file EventAuxiliary.cc.

96  {
97  os << id_ << endl;
98  }
QTextStream & endl(QTextStream &s)

Member Data Documentation

constexpr BranchType art::EventAuxiliary::branch_type = InEvent
static

Definition at line 14 of file EventAuxiliary.h.

ExperimentType art::EventAuxiliary::experimentType_ {Any}
private

Definition at line 54 of file EventAuxiliary.h.

EventID art::EventAuxiliary::id_ {}
private

Definition at line 51 of file EventAuxiliary.h.

bool art::EventAuxiliary::isRealData_ {false}
private

Definition at line 53 of file EventAuxiliary.h.

Timestamp art::EventAuxiliary::time_ {}
private

Definition at line 52 of file EventAuxiliary.h.


The documentation for this class was generated from the following files: