LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
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 ()=default
 
 EventAuxiliary (EventID const &theId, Timestamp const &theTime, bool const isReal, ExperimentType const eType=Any)
 
void write (std::ostream &os) const
 
Timestamp const & time () const
 
EventID const & id () const
 
RunID const & runID () const
 
SubRunID const & subRunID () const
 
RunNumber_t run () const
 
SubRunNumber_t subRun () const
 
EventNumber_t event () const
 
bool isRealData () const
 
ExperimentType experimentType () const
 
bool operator== (EventAuxiliary const &other) 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 17 of file EventAuxiliary.h.

Member Enumeration Documentation

Enumerator
Any 
Align 
Calib 
Cosmic 
Data 
Mc 
Raw 
Test 

Definition at line 22 of file EventAuxiliary.h.

Constructor & Destructor Documentation

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

Definition at line 35 of file EventAuxiliary.h.

References experimentType_, isRealData_, time_, and write().

39  : id_{theId}, time_{theTime}, isRealData_{isReal}, experimentType_{eType}
40  {}
ExperimentType experimentType_

Member Function Documentation

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

Definition at line 76 of file EventAuxiliary.h.

References art::EventID::event(), and id_.

Referenced by art::Event::event().

77  {
78  return id_.event();
79  }
EventNumber_t event() const
Definition: EventID.h:117
ExperimentType art::EventAuxiliary::experimentType ( ) const
inline

Definition at line 88 of file EventAuxiliary.h.

References experimentType_.

Referenced by art::EventPrincipal::ExperimentType(), and art::Event::experimentType().

89  {
90  return experimentType_;
91  }
ExperimentType experimentType_
EventID const& art::EventAuxiliary::id ( ) const
inline
bool art::EventAuxiliary::isRealData ( ) const
inline
bool art::EventAuxiliary::operator== ( EventAuxiliary const &  other) const
inline

Definition at line 94 of file EventAuxiliary.h.

References experimentType_, id_, isRealData_, and time_.

95  {
96  return id_ == other.id_ && time_ == other.time_ &&
97  isRealData_ == other.isRealData_ &&
98  experimentType_ == other.experimentType_;
99  }
ExperimentType experimentType_
RunNumber_t art::EventAuxiliary::run ( ) const
inline

Definition at line 66 of file EventAuxiliary.h.

References id_, and art::EventID::run().

67  {
68  return id_.run();
69  }
RunNumber_t run() const
Definition: EventID.h:99
RunID const& art::EventAuxiliary::runID ( ) const
inline

Definition at line 56 of file EventAuxiliary.h.

References id_, and art::EventID::runID().

57  {
58  return id_.runID();
59  }
RunID const & runID() const
Definition: EventID.h:93
SubRunNumber_t art::EventAuxiliary::subRun ( ) const
inline

Definition at line 71 of file EventAuxiliary.h.

References id_, and art::EventID::subRun().

Referenced by art::Event::subRun().

72  {
73  return id_.subRun();
74  }
SubRunNumber_t subRun() const
Definition: EventID.h:111
SubRunID const& art::EventAuxiliary::subRunID ( ) const
inline

Definition at line 61 of file EventAuxiliary.h.

References id_, and art::EventID::subRunID().

62  {
63  return id_.subRunID();
64  }
SubRunID const & subRunID() const
Definition: EventID.h:105
Timestamp const& art::EventAuxiliary::time ( ) const
inline

Definition at line 45 of file EventAuxiliary.h.

References time_.

Referenced by rndm::NuRandomServiceHelper::ArtState::getEventSeedInputData(), art::Event::time(), and art::EventPrincipal::time().

46  {
47  return time_;
48  }
void art::EventAuxiliary::write ( std::ostream &  os) const

Definition at line 5 of file EventAuxiliary.cc.

References id_.

Referenced by EventAuxiliary(), and operator<<().

6 {
7  os << id_ << std::endl;
8 }

Member Data Documentation

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

Definition at line 19 of file EventAuxiliary.h.

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

Definition at line 109 of file EventAuxiliary.h.

Referenced by EventAuxiliary(), experimentType(), and operator==().

EventID art::EventAuxiliary::id_ {}
private

Definition at line 103 of file EventAuxiliary.h.

Referenced by event(), id(), operator==(), run(), runID(), subRun(), subRunID(), and write().

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

Definition at line 107 of file EventAuxiliary.h.

Referenced by EventAuxiliary(), isRealData(), and operator==().

Timestamp art::EventAuxiliary::time_ {}
private

Definition at line 105 of file EventAuxiliary.h.

Referenced by EventAuxiliary(), operator==(), and time().


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