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

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 &)
 
- Public Member Functions inherited from FWNavigatorBase
 FWNavigatorBase (const CmsShowMainBase &)
 
virtual ~FWNavigatorBase ()
 
- 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(0),
27  {}
FWNavigatorBase(const CmsShowMainBase &)
enum FWFFNavigatorState m_currentTransition
Definition: FWFFNavigator.h:65
const edm::Event * m_currentEvent
Definition: FWFFNavigator.h:63

Member Function Documentation

virtual void FWFFNavigator::addTo ( FWConfiguration ) const
inlinevirtual

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 ( )
virtual

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
virtual const edm::EventBase* FWFFNavigator::getCurrentEvent ( ) const
inlinevirtual

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
virtual int FWFFNavigator::getNSelectedEvents ( )
inlinevirtual

Implements FWNavigatorBase.

Definition at line 52 of file FWFFNavigator.h.

52 { return getNTotalEvents(); }
virtual int getNTotalEvents()
Definition: FWFFNavigator.h:55
virtual int FWFFNavigator::getNTotalEvents ( )
inlinevirtual

Implements FWNavigatorBase.

Definition at line 55 of file FWFFNavigator.h.

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

Implements FWNavigatorBase.

Definition at line 44 of file FWFFNavigator.h.

44 {}
virtual bool FWFFNavigator::isFirstEvent ( )
inlinevirtual

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:58
virtual bool FWFFNavigator::isLastEvent ( )
inlinevirtual

Implements FWNavigatorBase.

Definition at line 47 of file FWFFNavigator.h.

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

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 ( )
virtual

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
virtual bool FWFFNavigator::nextSelectedEvent ( )
inlinevirtual

Implements FWNavigatorBase.

Definition at line 36 of file FWFFNavigator.h.

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

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
virtual bool FWFFNavigator::previousSelectedEvent ( )
inlinevirtual

Implements FWNavigatorBase.

Definition at line 37 of file FWFFNavigator.h.

References single_neutrino_cfg::firstEvent.

37 { previousEvent(); return true; }
virtual void previousEvent()
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:58
sigc::signal< void > newEvent_
virtual void FWFFNavigator::setFrom ( const FWConfiguration )
inlinevirtual

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