CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

FWFFNavigator Class Reference

#include <FWFFNavigator.h>

Inheritance diagram for FWFFNavigator:
FWNavigatorBase FWConfigurable

List of all members.

Public Types

enum  FWFFNavigatorState {
  kNoTransition, kNextEvent, kPreviousEvent, kFirstEvent,
  kLastEvent
}

Public Member Functions

virtual void addTo (FWConfiguration &) const
enum FWFFNavigatorState currentTransition ()
virtual void firstEvent ()
 FWFFNavigator (CmsShowMainBase &main)
virtual const edm::EventBasegetCurrentEvent () const
const edm::EventIDgetFirstEventID ()
virtual int getNSelectedEvents ()
virtual int getNTotalEvents ()
virtual void goToRunEvent (edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t)
virtual bool isFirstEvent ()
virtual bool isLastEvent ()
virtual void lastEvent ()
virtual void nextEvent ()
virtual bool nextSelectedEvent ()
virtual void previousEvent ()
virtual bool previousSelectedEvent ()
void resetTransition ()
void setCurrentEvent (const edm::Event *)
virtual void setFrom (const FWConfiguration &)

Private Attributes

const edm::Eventm_currentEvent
enum FWFFNavigatorState m_currentTransition
edm::EventID m_firstEventID

Detailed Description

Definition at line 12 of file FWFFNavigator.h.


Member Enumeration Documentation

Enumerator:
kNoTransition 
kNextEvent 
kPreviousEvent 
kFirstEvent 
kLastEvent 

Definition at line 15 of file FWFFNavigator.h.


Constructor & Destructor Documentation

FWFFNavigator::FWFFNavigator ( CmsShowMainBase main) [inline]

Definition at line 23 of file FWFFNavigator.h.


Member Function Documentation

virtual void FWFFNavigator::addTo ( FWConfiguration ) const [inline, virtual]

Implements FWNavigatorBase.

Definition at line 29 of file FWFFNavigator.h.

{}
enum FWFFNavigatorState FWFFNavigator::currentTransition ( ) [inline]

Definition at line 60 of file FWFFNavigator.h.

References m_currentTransition.

{ return m_currentTransition; }
void FWFFNavigator::firstEvent ( ) [virtual]

Implements FWNavigatorBase.

Definition at line 19 of file FWFFNavigator.cc.

References kFirstEvent, and m_currentTransition.

{
   m_currentTransition = kFirstEvent;
   gSystem->ExitLoop();
}
virtual const edm::EventBase* FWFFNavigator::getCurrentEvent ( ) const [inline, virtual]

Implements FWNavigatorBase.

Definition at line 50 of file FWFFNavigator.h.

References m_currentEvent.

{ return m_currentEvent; }
const edm::EventID & FWFFNavigator::getFirstEventID ( )

Definition at line 46 of file FWFFNavigator.cc.

References m_firstEventID.

{
   return m_firstEventID;
}
virtual int FWFFNavigator::getNSelectedEvents ( ) [inline, virtual]

Implements FWNavigatorBase.

Definition at line 52 of file FWFFNavigator.h.

References getNTotalEvents().

{ return getNTotalEvents(); }
virtual int FWFFNavigator::getNTotalEvents ( ) [inline, virtual]

Implements FWNavigatorBase.

Definition at line 55 of file FWFFNavigator.h.

Referenced by getNSelectedEvents().

{ return 0; }
virtual void FWFFNavigator::goToRunEvent ( edm::RunNumber_t  ,
edm::LuminosityBlockNumber_t  ,
edm::EventNumber_t   
) [inline, virtual]

Implements FWNavigatorBase.

Definition at line 44 of file FWFFNavigator.h.

{}
virtual bool FWFFNavigator::isFirstEvent ( ) [inline, virtual]

Implements FWNavigatorBase.

Definition at line 48 of file FWFFNavigator.h.

References edm::EventBase::id(), m_currentEvent, and m_firstEventID.

{return m_currentEvent->id() == m_firstEventID; }
virtual bool FWFFNavigator::isLastEvent ( ) [inline, virtual]

Implements FWNavigatorBase.

Definition at line 47 of file FWFFNavigator.h.

{return false;}
void FWFFNavigator::lastEvent ( ) [virtual]

Implements FWNavigatorBase.

Definition at line 26 of file FWFFNavigator.cc.

References kLastEvent, and m_currentTransition.

{
   m_currentTransition = kLastEvent;
   gSystem->ExitLoop();
}
void FWFFNavigator::nextEvent ( ) [virtual]

Implements FWNavigatorBase.

Definition at line 5 of file FWFFNavigator.cc.

References kNextEvent, and m_currentTransition.

Referenced by nextSelectedEvent().

{
   m_currentTransition = kNextEvent;
   gSystem->ExitLoop();
}
virtual bool FWFFNavigator::nextSelectedEvent ( ) [inline, virtual]

Implements FWNavigatorBase.

Definition at line 36 of file FWFFNavigator.h.

References nextEvent().

{ nextEvent(); return true; }
void FWFFNavigator::previousEvent ( ) [virtual]

Implements FWNavigatorBase.

Definition at line 12 of file FWFFNavigator.cc.

References kPreviousEvent, and m_currentTransition.

Referenced by previousSelectedEvent().

{
   m_currentTransition = kPreviousEvent;
   gSystem->ExitLoop();
}
virtual bool FWFFNavigator::previousSelectedEvent ( ) [inline, virtual]

Implements FWNavigatorBase.

Definition at line 37 of file FWFFNavigator.h.

References previousEvent().

{ previousEvent(); return true; }
void FWFFNavigator::resetTransition ( ) [inline]

Definition at line 61 of file FWFFNavigator.h.

References kNoTransition, and m_currentTransition.

void FWFFNavigator::setCurrentEvent ( const edm::Event event)

API to move to a given event. Notice that it is also responsible for keeping registering the ID of the first event, so that we can stop going back.

Definition at line 37 of file FWFFNavigator.cc.

References event(), edm::EventBase::id(), m_currentEvent, m_firstEventID, and FWNavigatorBase::newEvent_.

virtual void FWFFNavigator::setFrom ( const FWConfiguration ) [inline, virtual]

Implements FWNavigatorBase.

Definition at line 30 of file FWFFNavigator.h.

{}

Member Data Documentation

Definition at line 63 of file FWFFNavigator.h.

Referenced by getCurrentEvent(), isFirstEvent(), and setCurrentEvent().

Definition at line 64 of file FWFFNavigator.h.

Referenced by getFirstEventID(), isFirstEvent(), and setCurrentEvent().