LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 ()
 
 EventAuxiliary (EventID const &theId, Timestamp const &theTime, bool isReal, ExperimentType eType=Any, ProcessHistoryID const &phid={})
 
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
 
ProcessHistoryID const & processHistoryID () const noexcept
 
void setProcessHistoryID (ProcessHistoryID const &)
 

Static Public Attributes

static constexpr BranchType branch_type = InEvent
 

Private Attributes

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

Detailed Description

Definition at line 13 of file EventAuxiliary.h.

Member Enumeration Documentation

Enumerator
Any 
Align 
Calib 
Cosmic 
Data 
Mc 
Raw 
Test 

Definition at line 16 of file EventAuxiliary.h.

Constructor & Destructor Documentation

art::EventAuxiliary::EventAuxiliary ( )
default
art::EventAuxiliary::EventAuxiliary ( EventID const &  theId,
Timestamp const &  theTime,
bool  isReal,
ExperimentType  eType = Any,
ProcessHistoryID const &  phid = {} 
)

Definition at line 10 of file EventAuxiliary.cc.

References experimentType_, id_, isRealData_, and time_.

15  : processHistoryID_{phid}
16  , id_{theId}
17  , time_{theTime}
18  , isRealData_{isReal}
19  , experimentType_{eType}
20  {}
ProcessHistoryID processHistoryID_
ExperimentType experimentType_

Member Function Documentation

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

Definition at line 65 of file EventAuxiliary.cc.

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

66  {
67  return id_.event();
68  }
EventNumber_t event() const
Definition: EventID.h:116
EventID const & art::EventAuxiliary::eventID ( ) const
noexcept

Definition at line 35 of file EventAuxiliary.cc.

References id().

36  {
37  return id();
38  }
EventID const & id() const noexcept
EventAuxiliary::ExperimentType art::EventAuxiliary::experimentType ( ) const
noexcept

Definition at line 77 of file EventAuxiliary.cc.

References experimentType_.

Referenced by art::EventPrincipal::ExperimentType().

78  {
79  return experimentType_;
80  }
ExperimentType experimentType_
EventID const & art::EventAuxiliary::id ( ) const
noexcept
bool art::EventAuxiliary::isRealData ( ) const
noexcept

Definition at line 71 of file EventAuxiliary.cc.

References isRealData_.

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

72  {
73  return isRealData_;
74  }
bool art::EventAuxiliary::operator== ( EventAuxiliary const &  other) const
noexcept

Definition at line 83 of file EventAuxiliary.cc.

References experimentType_, id_, isRealData_, fhicl::other, and time_.

84  {
85  return (id_ == other.id_) && (time_ == other.time_) &&
86  (isRealData_ == other.isRealData_) &&
87  (experimentType_ == other.experimentType_);
88  }
ExperimentType experimentType_
ProcessHistoryID const & art::EventAuxiliary::processHistoryID ( ) const
noexcept

Definition at line 97 of file EventAuxiliary.cc.

References processHistoryID_.

Referenced by art::EventPrincipal::EventPrincipal().

98  {
99  return processHistoryID_;
100  }
ProcessHistoryID processHistoryID_
RunNumber_t art::EventAuxiliary::run ( ) const
noexcept

Definition at line 53 of file EventAuxiliary.cc.

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

54  {
55  return id_.run();
56  }
RunNumber_t run() const
Definition: EventID.h:98
RunID const & art::EventAuxiliary::runID ( ) const
noexcept

Definition at line 41 of file EventAuxiliary.cc.

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

42  {
43  return id_.runID();
44  }
RunID const & runID() const
Definition: EventID.h:92
void art::EventAuxiliary::setProcessHistoryID ( ProcessHistoryID const &  phid)

Definition at line 103 of file EventAuxiliary.cc.

References processHistoryID_.

Referenced by art::EventPrincipal::refreshProcessHistoryID().

104  {
105  processHistoryID_ = phid;
106  }
ProcessHistoryID processHistoryID_
SubRunNumber_t art::EventAuxiliary::subRun ( ) const
noexcept

Definition at line 59 of file EventAuxiliary.cc.

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

60  {
61  return id_.subRun();
62  }
SubRunNumber_t subRun() const
Definition: EventID.h:110
SubRunID const & art::EventAuxiliary::subRunID ( ) const
noexcept

Definition at line 47 of file EventAuxiliary.cc.

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

48  {
49  return id_.subRunID();
50  }
SubRunID const & subRunID() const
Definition: EventID.h:104
Timestamp const & art::EventAuxiliary::time ( ) const
noexcept

Definition at line 23 of file EventAuxiliary.cc.

References time_.

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

24  {
25  return time_;
26  }
void art::EventAuxiliary::write ( std::ostream &  os) const

Definition at line 91 of file EventAuxiliary.cc.

References id_.

Referenced by art::operator<<().

92  {
93  os << id_ << '\n';
94  }

Member Data Documentation

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

Definition at line 15 of file EventAuxiliary.h.

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

Definition at line 58 of file EventAuxiliary.h.

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

EventID art::EventAuxiliary::id_ {}
private

Definition at line 55 of file EventAuxiliary.h.

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

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

Definition at line 57 of file EventAuxiliary.h.

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

ProcessHistoryID art::EventAuxiliary::processHistoryID_ {}
private

Definition at line 53 of file EventAuxiliary.h.

Referenced by processHistoryID(), and setProcessHistoryID().

Timestamp art::EventAuxiliary::time_ {}
private

Definition at line 56 of file EventAuxiliary.h.

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


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