CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
FWFFNavigator Class Reference

#include <FWFFNavigator.h>

Inheritance diagram for FWFFNavigator:
FWNavigatorBase FWConfigurable

Public Types

enum  FWFFNavigatorState {
  kNoTransition, kNextEvent, kPreviousEvent, kFirstEvent,
  kLastEvent
}
 
- Public Types inherited from FWNavigatorBase
enum  EFilterMode { kOr = 1, kAnd = 2 }
 
enum  EFilterState { kOff, kOn, kWithdrawn }
 

Public Member Functions

void addTo (FWConfiguration &) const override
 
enum FWFFNavigatorState currentTransition ()
 
void firstEvent () override
 
 FWFFNavigator (CmsShowMainBase &main)
 
const edm::EventBasegetCurrentEvent () const override
 
const edm::EventIDgetFirstEventID ()
 
int getNSelectedEvents () override
 
int getNTotalEvents () override
 
void goToRunEvent (edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t) override
 
bool isFirstEvent () override
 
bool isLastEvent () override
 
void lastEvent () override
 
void nextEvent () override
 
bool nextSelectedEvent () override
 
void previousEvent () override
 
bool previousSelectedEvent () override
 
void resetTransition ()
 
void setCurrentEvent (const edm::Event *)
 
void setFrom (const FWConfiguration &) override
 
- Public Member Functions inherited from FWNavigatorBase
 FWNavigatorBase (const CmsShowMainBase &)
 
 FWNavigatorBase (const FWNavigatorBase &)=delete
 
const FWNavigatorBaseoperator= (const FWNavigatorBase &)=delete
 
 ~FWNavigatorBase () override
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
 FWConfigurable (const FWConfigurable &)=delete
 
const FWConfigurableoperator= (const FWConfigurable &)=delete
 
virtual ~FWConfigurable ()
 

Private Attributes

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

Additional Inherited Members

- Public Attributes inherited from FWNavigatorBase
sigc::signal< void()> newEvent_
 

Detailed Description

Definition at line 11 of file FWFFNavigator.h.

Member Enumeration Documentation

◆ FWFFNavigatorState

Constructor & Destructor Documentation

◆ FWFFNavigator()

FWFFNavigator::FWFFNavigator ( CmsShowMainBase main)
inline

Definition at line 15 of file FWFFNavigator.h.

FWNavigatorBase(const CmsShowMainBase &)
enum FWFFNavigatorState m_currentTransition
Definition: FWFFNavigator.h:61
const edm::Event * m_currentEvent
Definition: FWFFNavigator.h:59
Definition: main.py:1

Member Function Documentation

◆ addTo()

void FWFFNavigator::addTo ( FWConfiguration ) const
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 18 of file FWFFNavigator.h.

18 {}

◆ currentTransition()

enum FWFFNavigatorState FWFFNavigator::currentTransition ( )
inline

Definition at line 55 of file FWFFNavigator.h.

References m_currentTransition.

55 { return m_currentTransition; }
enum FWFFNavigatorState m_currentTransition
Definition: FWFFNavigator.h:61

◆ firstEvent()

void FWFFNavigator::firstEvent ( )
overridevirtual

Implements FWNavigatorBase.

Definition at line 14 of file FWFFNavigator.cc.

References kFirstEvent, and m_currentTransition.

14  {
16  gSystem->ExitLoop();
17 }
enum FWFFNavigatorState m_currentTransition
Definition: FWFFNavigator.h:61

◆ getCurrentEvent()

const edm::EventBase* FWFFNavigator::getCurrentEvent ( ) const
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 45 of file FWFFNavigator.h.

References m_currentEvent.

45 { return m_currentEvent; }
const edm::Event * m_currentEvent
Definition: FWFFNavigator.h:59

◆ getFirstEventID()

const edm::EventID & FWFFNavigator::getFirstEventID ( )

Definition at line 35 of file FWFFNavigator.cc.

References m_firstEventID.

35 { return m_firstEventID; }
edm::EventID m_firstEventID
Definition: FWFFNavigator.h:60

◆ getNSelectedEvents()

int FWFFNavigator::getNSelectedEvents ( )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 47 of file FWFFNavigator.h.

References getNTotalEvents().

47 { return getNTotalEvents(); }
int getNTotalEvents() override
Definition: FWFFNavigator.h:50

◆ getNTotalEvents()

int FWFFNavigator::getNTotalEvents ( )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 50 of file FWFFNavigator.h.

Referenced by getNSelectedEvents().

50 { return 0; }

◆ goToRunEvent()

void FWFFNavigator::goToRunEvent ( edm::RunNumber_t  ,
edm::LuminosityBlockNumber_t  ,
edm::EventNumber_t   
)
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 39 of file FWFFNavigator.h.

39 {}

◆ isFirstEvent()

bool FWFFNavigator::isFirstEvent ( )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 43 of file FWFFNavigator.h.

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

43 { return m_currentEvent->id() == m_firstEventID; }
edm::EventID id() const
Definition: EventBase.h:63
edm::EventID m_firstEventID
Definition: FWFFNavigator.h:60
const edm::Event * m_currentEvent
Definition: FWFFNavigator.h:59

◆ isLastEvent()

bool FWFFNavigator::isLastEvent ( )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 42 of file FWFFNavigator.h.

42 { return false; }

◆ lastEvent()

void FWFFNavigator::lastEvent ( )
overridevirtual

Implements FWNavigatorBase.

Definition at line 19 of file FWFFNavigator.cc.

References kLastEvent, and m_currentTransition.

19  {
21  gSystem->ExitLoop();
22 }
enum FWFFNavigatorState m_currentTransition
Definition: FWFFNavigator.h:61

◆ nextEvent()

void FWFFNavigator::nextEvent ( )
overridevirtual

Implements FWNavigatorBase.

Definition at line 4 of file FWFFNavigator.cc.

References kNextEvent, and m_currentTransition.

Referenced by nextSelectedEvent().

4  {
6  gSystem->ExitLoop();
7 }
enum FWFFNavigatorState m_currentTransition
Definition: FWFFNavigator.h:61

◆ nextSelectedEvent()

bool FWFFNavigator::nextSelectedEvent ( )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 25 of file FWFFNavigator.h.

References nextEvent().

25  {
26  nextEvent();
27  return true;
28  }
void nextEvent() override
Definition: FWFFNavigator.cc:4

◆ previousEvent()

void FWFFNavigator::previousEvent ( )
overridevirtual

Implements FWNavigatorBase.

Definition at line 9 of file FWFFNavigator.cc.

References kPreviousEvent, and m_currentTransition.

Referenced by previousSelectedEvent().

9  {
11  gSystem->ExitLoop();
12 }
enum FWFFNavigatorState m_currentTransition
Definition: FWFFNavigator.h:61

◆ previousSelectedEvent()

bool FWFFNavigator::previousSelectedEvent ( )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 29 of file FWFFNavigator.h.

References previousEvent().

29  {
30  previousEvent();
31  return true;
32  }
void previousEvent() override
Definition: FWFFNavigator.cc:9

◆ resetTransition()

void FWFFNavigator::resetTransition ( )
inline

Definition at line 56 of file FWFFNavigator.h.

References kNoTransition, and m_currentTransition.

◆ setCurrentEvent()

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 28 of file FWFFNavigator.cc.

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

28  {
32  newEvent_.emit();
33 }
sigc::signal< void()> newEvent_
edm::EventID id() const
Definition: EventBase.h:63
edm::EventID m_firstEventID
Definition: FWFFNavigator.h:60
const edm::Event * m_currentEvent
Definition: FWFFNavigator.h:59

◆ setFrom()

void FWFFNavigator::setFrom ( const FWConfiguration )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 19 of file FWFFNavigator.h.

19 {}

Member Data Documentation

◆ m_currentEvent

const edm::Event* FWFFNavigator::m_currentEvent
private

Definition at line 59 of file FWFFNavigator.h.

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

◆ m_currentTransition

enum FWFFNavigatorState FWFFNavigator::m_currentTransition
private

◆ m_firstEventID

edm::EventID FWFFNavigator::m_firstEventID
private

Definition at line 60 of file FWFFNavigator.h.

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