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 () override
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
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

Enumerator
kNoTransition 
kNextEvent 
kPreviousEvent 
kFirstEvent 
kLastEvent 

Definition at line 13 of file FWFFNavigator.h.

Constructor & Destructor Documentation

◆ FWFFNavigator()

FWFFNavigator::FWFFNavigator ( CmsShowMainBase main)
inline

Definition at line 15 of file FWFFNavigator.h.

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.

55 { return m_currentTransition; }

References m_currentTransition.

◆ firstEvent()

void FWFFNavigator::firstEvent ( )
overridevirtual

Implements FWNavigatorBase.

Definition at line 14 of file FWFFNavigator.cc.

14  {
16  gSystem->ExitLoop();
17 }

References kFirstEvent, and m_currentTransition.

◆ getCurrentEvent()

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

Implements FWNavigatorBase.

Definition at line 45 of file FWFFNavigator.h.

45 { return m_currentEvent; }

References m_currentEvent.

◆ getFirstEventID()

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

Definition at line 35 of file FWFFNavigator.cc.

35 { return m_firstEventID; }

References m_firstEventID.

◆ getNSelectedEvents()

int FWFFNavigator::getNSelectedEvents ( )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 47 of file FWFFNavigator.h.

47 { return getNTotalEvents(); }

References getNTotalEvents().

◆ getNTotalEvents()

int FWFFNavigator::getNTotalEvents ( )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 50 of file FWFFNavigator.h.

50 { return 0; }

Referenced by getNSelectedEvents().

◆ 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.

43 { return m_currentEvent->id() == m_firstEventID; }

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

◆ 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.

19  {
21  gSystem->ExitLoop();
22 }

References kLastEvent, and m_currentTransition.

◆ nextEvent()

void FWFFNavigator::nextEvent ( )
overridevirtual

Implements FWNavigatorBase.

Definition at line 4 of file FWFFNavigator.cc.

4  {
6  gSystem->ExitLoop();
7 }

References kNextEvent, and m_currentTransition.

Referenced by nextSelectedEvent().

◆ nextSelectedEvent()

bool FWFFNavigator::nextSelectedEvent ( )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 25 of file FWFFNavigator.h.

25  {
26  nextEvent();
27  return true;
28  }

References nextEvent().

◆ previousEvent()

void FWFFNavigator::previousEvent ( )
overridevirtual

Implements FWNavigatorBase.

Definition at line 9 of file FWFFNavigator.cc.

9  {
11  gSystem->ExitLoop();
12 }

References kPreviousEvent, and m_currentTransition.

Referenced by previousSelectedEvent().

◆ previousSelectedEvent()

bool FWFFNavigator::previousSelectedEvent ( )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 29 of file FWFFNavigator.h.

29  {
30  previousEvent();
31  return true;
32  }

References previousEvent().

◆ 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.

28  {
32  newEvent_.emit();
33 }

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

◆ 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().

FWFFNavigator::getNTotalEvents
int getNTotalEvents() override
Definition: FWFFNavigator.h:50
FWNavigatorBase::FWNavigatorBase
FWNavigatorBase(const CmsShowMainBase &)
Definition: FWNavigatorBase.cc:3
FWNavigatorBase::newEvent_
sigc::signal< void > newEvent_
Definition: FWNavigatorBase.h:56
FWFFNavigator::kNoTransition
Definition: FWFFNavigator.h:13
FWFFNavigator::kFirstEvent
Definition: FWFFNavigator.h:13
FWFFNavigator::m_currentEvent
const edm::Event * m_currentEvent
Definition: FWFFNavigator.h:59
edmPickEvents.event
event
Definition: edmPickEvents.py:273
FWFFNavigator::kPreviousEvent
Definition: FWFFNavigator.h:13
FWFFNavigator::nextEvent
void nextEvent() override
Definition: FWFFNavigator.cc:4
FWFFNavigator::m_currentTransition
enum FWFFNavigatorState m_currentTransition
Definition: FWFFNavigator.h:61
FWFFNavigator::previousEvent
void previousEvent() override
Definition: FWFFNavigator.cc:9
main
Definition: main.py:1
edm::EventBase::id
edm::EventID id() const
Definition: EventBase.h:59
FWFFNavigator::kNextEvent
Definition: FWFFNavigator.h:13
FWFFNavigator::m_firstEventID
edm::EventID m_firstEventID
Definition: FWFFNavigator.h:60
FWFFNavigator::kLastEvent
Definition: FWFFNavigator.h:13
edm::EventID
Definition: EventID.h:31