LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
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)
 
std::shared_ptr< RootInputFilerootFileForLastReadEvent () const
 
void setRootFileForLastReadEvent (std::shared_ptr< RootInputFile > const &)
 

Private Attributes

State state_
 
EventID lastReadEventID_
 
std::shared_ptr< RootInputFilerootFileForLastReadEvent_
 
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.

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
std::shared_ptr<RootInputFile> art::RootInput::AccessState::rootFileForLastReadEvent ( ) const
inline

Definition at line 92 of file RootInput.h.

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

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

Definition at line 37 of file RootInput_source.cc.

References lastReadEventID_.

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

38 {
39  lastReadEventID_ = eid;
40 }
void RootInput::AccessState::setRootFileForLastReadEvent ( std::shared_ptr< RootInputFile > const &  ptr)

Definition at line 49 of file RootInput_source.cc.

References rootFileForLastReadEvent_.

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

51 {
53 }
std::shared_ptr< RootInputFile > rootFileForLastReadEvent_
Definition: RootInput.h:101
void RootInput::AccessState::setState ( State  state)
void RootInput::AccessState::setWantedEventID ( EventID const &  eid)

Definition at line 43 of file RootInput_source.cc.

References wantedEventID_.

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

44 {
45  wantedEventID_ = eid;
46 }
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().

std::shared_ptr<RootInputFile> art::RootInput::AccessState::rootFileForLastReadEvent_
private

Definition at line 101 of file RootInput.h.

Referenced by setRootFileForLastReadEvent().

State art::RootInput::AccessState::state_
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: