Public Types | Public Member Functions | Private Attributes | List of all members
art::RootInput::AccessState Class Reference

Public Types

enum  State {
  SEQUENTIAL = 0, SEEKING_FILE, SEEKING_RUN, SEEKING_SUBRUN,
  SEEKING_EVENT
}
 

Public Member Functions

 AccessState ()
 
State state () const
 
void setState (State state)
 
void resetState ()
 
EventID const & lastReadEventID () const
 
void setLastReadEventID (EventID const &eid)
 
EventID const & wantedEventID () const
 
void setWantedEventID (EventID const &eid)
 
RootInputFilerootFileForLastReadEvent () const
 
void setRootFileForLastReadEvent (RootInputFile *)
 

Private Attributes

State state_ {SEQUENTIAL}
 
EventID lastReadEventID_
 
RootInputFilerootFileForLastReadEvent_ {nullptr}
 
EventID wantedEventID_
 

Detailed Description

Definition at line 56 of file RootInput.h.

Member Enumeration Documentation

Enumerator
SEQUENTIAL 
SEEKING_FILE 
SEEKING_RUN 
SEEKING_SUBRUN 
SEEKING_EVENT 

Definition at line 58 of file RootInput.h.

Constructor & Destructor Documentation

RootInput::AccessState::AccessState ( )

Definition at line 23 of file RootInput_source.cc.

23 {}

Member Function Documentation

EventID const& art::RootInput::AccessState::lastReadEventID ( ) const
inline

Definition at line 80 of file RootInput.h.

Referenced by art::RootInput::postSeekChecks(), and art::RootInput::seekToEvent().

81  {
82  return lastReadEventID_;
83  }
void art::RootInput::AccessState::resetState ( )
inline
RootInputFile* art::RootInput::AccessState::rootFileForLastReadEvent ( ) const
inline

Definition at line 92 of file RootInput.h.

Referenced by art::RootInput::seekToEvent().

93  {
95  }
RootInputFile * rootFileForLastReadEvent_
Definition: RootInput.h:101
void RootInput::AccessState::setLastReadEventID ( EventID const &  eid)

Definition at line 32 of file RootInput_source.cc.

References lastReadEventID_.

Referenced by art::RootInput::nextItemType(), and art::RootInput::readEvent_().

33 {
34  lastReadEventID_ = eid;
35 }
void RootInput::AccessState::setRootFileForLastReadEvent ( RootInputFile ptr)

Definition at line 44 of file RootInput_source.cc.

References rootFileForLastReadEvent_.

Referenced by art::RootInput::nextItemType(), and art::RootInput::readEvent_().

45 {
47 }
RootInputFile * rootFileForLastReadEvent_
Definition: RootInput.h:101
void RootInput::AccessState::setState ( State  state)
void RootInput::AccessState::setWantedEventID ( EventID const &  eid)

Definition at line 38 of file RootInput_source.cc.

References wantedEventID_.

Referenced by art::RootInput::seekToEvent().

39 {
40  wantedEventID_ = eid;
41 }
State art::RootInput::AccessState::state ( ) const
inline
EventID const& art::RootInput::AccessState::wantedEventID ( ) const
inline

Definition at line 86 of file RootInput.h.

Referenced by art::RootInput::nextItemType().

87  {
88  return wantedEventID_;
89  }

Member Data Documentation

EventID art::RootInput::AccessState::lastReadEventID_
private

Definition at line 100 of file RootInput.h.

Referenced by setLastReadEventID().

RootInputFile* art::RootInput::AccessState::rootFileForLastReadEvent_ {nullptr}
private

Definition at line 101 of file RootInput.h.

Referenced by setRootFileForLastReadEvent().

State art::RootInput::AccessState::state_ {SEQUENTIAL}
private

Definition at line 99 of file RootInput.h.

Referenced by setState().

EventID art::RootInput::AccessState::wantedEventID_
private

Definition at line 102 of file RootInput.h.

Referenced by setWantedEventID().


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