CMS 3D CMS Logo

FWFFNavigator.h
Go to the documentation of this file.
1 #ifndef Fireworks_FWInterface_FWFFNavigator_h
2 #define Fireworks_FWInterface_FWFFNavigator_h
3 
6 
7 namespace edm {
8  class EventBase;
9 }
10 
12 public:
14 
17  // Discard configuration for the time being.
18  void addTo(FWConfiguration &) const override {}
19  void setFrom(const FWConfiguration &) override {}
20 
21  void nextEvent() override;
22  void previousEvent() override;
23  // nextSelectedEvent and nextEvent are the same thing
24  // for full framework, since there is no filtering.
25  bool nextSelectedEvent() override {
26  nextEvent();
27  return true;
28  }
29  bool previousSelectedEvent() override {
30  previousEvent();
31  return true;
32  }
33 
34  // FIXME: for the time being there is no way to go to
35  // first / last event.
36  void firstEvent() override;
37  void lastEvent() override;
38  // FIXME: does not do anything for the time being.
40  // Notice that we have no way to tell whether the current one
41  // is the last event in a stream.
42  bool isLastEvent() override { return false; }
43  bool isFirstEvent() override { return m_currentEvent->id() == m_firstEventID; }
44  // FIXME: we need to change the API of the baseclass first.
45  const edm::EventBase *getCurrentEvent() const override { return m_currentEvent; }
46  // The number of selected events is always the total number of event.
47  int getNSelectedEvents() override { return getNTotalEvents(); }
48  // FIXME: I guess there is no way to tell how many events
49  // we have.
50  int getNTotalEvents() override { return 0; }
51 
52  // Use to set the event from the framework.
53  void setCurrentEvent(const edm::Event *);
57 
58 private:
62 };
63 
64 #endif
FWFFNavigator::lastEvent
void lastEvent() override
Definition: FWFFNavigator.cc:19
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
FWFFNavigator::isLastEvent
bool isLastEvent() override
Definition: FWFFNavigator.h:42
FWNavigatorBase
Definition: FWNavigatorBase.h:27
FWFFNavigator::previousSelectedEvent
bool previousSelectedEvent() override
Definition: FWFFNavigator.h:29
FWFFNavigator::getNTotalEvents
int getNTotalEvents() override
Definition: FWFFNavigator.h:50
edm
HLT enums.
Definition: AlignableModifier.h:19
FWFFNavigator::FWFFNavigator
FWFFNavigator(CmsShowMainBase &main)
Definition: FWFFNavigator.h:15
FWFFNavigator::setCurrentEvent
void setCurrentEvent(const edm::Event *)
Definition: FWFFNavigator.cc:28
edm::LuminosityBlockNumber_t
unsigned int LuminosityBlockNumber_t
Definition: RunLumiEventNumber.h:13
FWFFNavigator::resetTransition
void resetTransition()
Definition: FWFFNavigator.h:56
FWFFNavigator::currentTransition
enum FWFFNavigatorState currentTransition()
Definition: FWFFNavigator.h:55
CmsShowMainBase
Definition: CmsShowMainBase.h:49
FWFFNavigator::kNoTransition
Definition: FWFFNavigator.h:13
edm::EventNumber_t
unsigned long long EventNumber_t
Definition: RunLumiEventNumber.h:12
FWFFNavigator::firstEvent
void firstEvent() override
Definition: FWFFNavigator.cc:14
FWFFNavigator::getNSelectedEvents
int getNSelectedEvents() override
Definition: FWFFNavigator.h:47
FWFFNavigator::kFirstEvent
Definition: FWFFNavigator.h:13
FWFFNavigator::m_currentEvent
const edm::Event * m_currentEvent
Definition: FWFFNavigator.h:59
FWFFNavigator::addTo
void addTo(FWConfiguration &) const override
Definition: FWFFNavigator.h:18
Event.h
FWFFNavigator::isFirstEvent
bool isFirstEvent() override
Definition: FWFFNavigator.h:43
FWFFNavigator::nextSelectedEvent
bool nextSelectedEvent() override
Definition: FWFFNavigator.h:25
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
FWFFNavigator
Definition: FWFFNavigator.h:11
main
Definition: main.py:1
FWFFNavigator::FWFFNavigatorState
FWFFNavigatorState
Definition: FWFFNavigator.h:13
edm::EventBase
Definition: EventBase.h:46
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
EventBase
FWFFNavigator::kLastEvent
Definition: FWFFNavigator.h:13
FWNavigatorBase.h
FWFFNavigator::goToRunEvent
void goToRunEvent(edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t) override
Definition: FWFFNavigator.h:39
FWConfiguration
Definition: FWConfiguration.h:31
FWFFNavigator::getFirstEventID
const edm::EventID & getFirstEventID()
Definition: FWFFNavigator.cc:35
edm::EventID
Definition: EventID.h:31
edm::Event
Definition: Event.h:73
FWFFNavigator::setFrom
void setFrom(const FWConfiguration &) override
Definition: FWFFNavigator.h:19
FWFFNavigator::getCurrentEvent
const edm::EventBase * getCurrentEvent() const override
Definition: FWFFNavigator.h:45