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

24  : FWNavigatorBase(main),
25  m_currentEvent(nullptr),
27  {}
FWNavigatorBase(const CmsShowMainBase &)
enum FWFFNavigatorState m_currentTransition
Definition: FWFFNavigator.h:65
const edm::Event * m_currentEvent
Definition: FWFFNavigator.h:63

Member Function Documentation

void FWFFNavigator::addTo ( FWConfiguration ) const
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 29 of file FWFFNavigator.h.

29 {}
enum FWFFNavigatorState FWFFNavigator::currentTransition ( )
inline

Definition at line 60 of file FWFFNavigator.h.

60 { return m_currentTransition; }
enum FWFFNavigatorState m_currentTransition
Definition: FWFFNavigator.h:65
void FWFFNavigator::firstEvent ( )
overridevirtual

Implements FWNavigatorBase.

Definition at line 19 of file FWFFNavigator.cc.

References kFirstEvent, and m_currentTransition.

20 {
22  gSystem->ExitLoop();
23 }
enum FWFFNavigatorState m_currentTransition
Definition: FWFFNavigator.h:65
const edm::EventBase* FWFFNavigator::getCurrentEvent ( ) const
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 50 of file FWFFNavigator.h.

50 { return m_currentEvent; }
const edm::Event * m_currentEvent
Definition: FWFFNavigator.h:63
const edm::EventID & FWFFNavigator::getFirstEventID ( )

Definition at line 46 of file FWFFNavigator.cc.

References m_firstEventID.

47 {
48  return m_firstEventID;
49 }
edm::EventID m_firstEventID
Definition: FWFFNavigator.h:64
int FWFFNavigator::getNSelectedEvents ( )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 52 of file FWFFNavigator.h.

52 { return getNTotalEvents(); }
int getNTotalEvents() override
Definition: FWFFNavigator.h:55
int FWFFNavigator::getNTotalEvents ( )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 55 of file FWFFNavigator.h.

55 { return 0; }
void FWFFNavigator::goToRunEvent ( edm::RunNumber_t  ,
edm::LuminosityBlockNumber_t  ,
edm::EventNumber_t   
)
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 44 of file FWFFNavigator.h.

44 {}
bool FWFFNavigator::isFirstEvent ( )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 48 of file FWFFNavigator.h.

48 {return m_currentEvent->id() == m_firstEventID; }
edm::EventID m_firstEventID
Definition: FWFFNavigator.h:64
const edm::Event * m_currentEvent
Definition: FWFFNavigator.h:63
edm::EventID id() const
Definition: EventBase.h:60
bool FWFFNavigator::isLastEvent ( )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 47 of file FWFFNavigator.h.

47 {return false;}
void FWFFNavigator::lastEvent ( )
overridevirtual

Implements FWNavigatorBase.

Definition at line 26 of file FWFFNavigator.cc.

References kLastEvent, and m_currentTransition.

27 {
29  gSystem->ExitLoop();
30 }
enum FWFFNavigatorState m_currentTransition
Definition: FWFFNavigator.h:65
void FWFFNavigator::nextEvent ( )
overridevirtual

Implements FWNavigatorBase.

Definition at line 5 of file FWFFNavigator.cc.

References kNextEvent, and m_currentTransition.

6 {
8  gSystem->ExitLoop();
9 }
enum FWFFNavigatorState m_currentTransition
Definition: FWFFNavigator.h:65
bool FWFFNavigator::nextSelectedEvent ( )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 36 of file FWFFNavigator.h.

36 { nextEvent(); return true; }
void nextEvent() override
Definition: FWFFNavigator.cc:5
void FWFFNavigator::previousEvent ( )
overridevirtual

Implements FWNavigatorBase.

Definition at line 12 of file FWFFNavigator.cc.

References kPreviousEvent, and m_currentTransition.

13 {
15  gSystem->ExitLoop();
16 }
enum FWFFNavigatorState m_currentTransition
Definition: FWFFNavigator.h:65
bool FWFFNavigator::previousSelectedEvent ( )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 37 of file FWFFNavigator.h.

37 { previousEvent(); return true; }
void previousEvent() override
void FWFFNavigator::resetTransition ( )
inline

Definition at line 61 of file FWFFNavigator.h.

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

38 {
42  newEvent_.emit();
43 }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
edm::EventID m_firstEventID
Definition: FWFFNavigator.h:64
const edm::Event * m_currentEvent
Definition: FWFFNavigator.h:63
edm::EventID id() const
Definition: EventBase.h:60
sigc::signal< void > newEvent_
void FWFFNavigator::setFrom ( const FWConfiguration )
inlineoverridevirtual

Implements FWNavigatorBase.

Definition at line 30 of file FWFFNavigator.h.

30 {}

Member Data Documentation

const edm::Event* FWFFNavigator::m_currentEvent
private

Definition at line 63 of file FWFFNavigator.h.

Referenced by setCurrentEvent().

enum FWFFNavigatorState FWFFNavigator::m_currentTransition
private

Definition at line 65 of file FWFFNavigator.h.

Referenced by firstEvent(), lastEvent(), nextEvent(), and previousEvent().

edm::EventID FWFFNavigator::m_firstEventID
private

Definition at line 64 of file FWFFNavigator.h.

Referenced by getFirstEventID(), and setCurrentEvent().