#include <FWFFNavigator.h>
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::EventBase * | getCurrentEvent () const |
const edm::EventID & | getFirstEventID () |
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::Event * | m_currentEvent |
enum FWFFNavigatorState | m_currentTransition |
edm::EventID | m_firstEventID |
Definition at line 12 of file FWFFNavigator.h.
Definition at line 15 of file FWFFNavigator.h.
FWFFNavigator::FWFFNavigator | ( | CmsShowMainBase & | main | ) | [inline] |
Definition at line 23 of file FWFFNavigator.h.
: FWNavigatorBase(main), m_currentEvent(0), m_currentTransition(kNoTransition) {}
virtual void FWFFNavigator::addTo | ( | FWConfiguration & | ) | const [inline, virtual] |
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] |
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] |
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.
{ m_currentTransition = kNoTransition; }
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_.
{ m_currentEvent = event; if (m_firstEventID == edm::EventID()) m_firstEventID = m_currentEvent->id(); newEvent_.emit(); }
virtual void FWFFNavigator::setFrom | ( | const FWConfiguration & | ) | [inline, virtual] |
const edm::Event* FWFFNavigator::m_currentEvent [private] |
Definition at line 63 of file FWFFNavigator.h.
Referenced by getCurrentEvent(), isFirstEvent(), and setCurrentEvent().
enum FWFFNavigatorState FWFFNavigator::m_currentTransition [private] |
Definition at line 65 of file FWFFNavigator.h.
Referenced by currentTransition(), firstEvent(), lastEvent(), nextEvent(), previousEvent(), and resetTransition().
edm::EventID FWFFNavigator::m_firstEventID [private] |
Definition at line 64 of file FWFFNavigator.h.
Referenced by getFirstEventID(), isFirstEvent(), and setCurrentEvent().