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

#include "/cvmfs/nova.opensciencegrid.org/externals/canvas/v3_06_01/source/canvas/Persistency/Provenance/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:116
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

Definition at line 51 of file EventAuxiliary.h.

References id_.

Referenced by art::Event::id(), and art::EventPrincipal::id().

52  {
53  return id_;
54  }
bool art::EventAuxiliary::isRealData ( ) const
inline

Definition at line 82 of file EventAuxiliary.h.

References isRealData_.

Referenced by art::EventPrincipal::isReal(), and art::Event::isRealData().

83  {
84  return isRealData_;
85  }
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().

Referenced by daq2raw::TestBeamRawInputDriver::loadBeamlineEvent(), and daq2raw::BeamlineRawInputDriver::makeSpill().

67  {
68  return id_.run();
69  }
RunNumber_t run() const
Definition: EventID.h:98
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:92
SubRunNumber_t art::EventAuxiliary::subRun ( ) const
inline

Definition at line 71 of file EventAuxiliary.h.

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

Referenced by daq2raw::BeamlineRawInputDriver::makeSpill(), and art::Event::subRun().

72  {
73  return id_.subRun();
74  }
SubRunNumber_t subRun() const
Definition: EventID.h:110
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:104
Timestamp const& art::EventAuxiliary::time ( ) const
inline

Definition at line 45 of file EventAuxiliary.h.

References time_.

Referenced by art::Event::time(), and art::EventPrincipal::time().

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

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

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(), and subRunID().

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 file: