File indexing completed on 2024-04-06 12:11:45
0001 #include "Fireworks/FWInterface/src/FWFFNavigator.h"
0002 #include "TSystem.h"
0003
0004 void FWFFNavigator::nextEvent() {
0005 m_currentTransition = kNextEvent;
0006 gSystem->ExitLoop();
0007 }
0008
0009 void FWFFNavigator::previousEvent() {
0010 m_currentTransition = kPreviousEvent;
0011 gSystem->ExitLoop();
0012 }
0013
0014 void FWFFNavigator::firstEvent() {
0015 m_currentTransition = kFirstEvent;
0016 gSystem->ExitLoop();
0017 }
0018
0019 void FWFFNavigator::lastEvent() {
0020 m_currentTransition = kLastEvent;
0021 gSystem->ExitLoop();
0022 }
0023
0024
0025
0026
0027
0028 void FWFFNavigator::setCurrentEvent(const edm::Event *event) {
0029 m_currentEvent = event;
0030 if (m_firstEventID == edm::EventID())
0031 m_firstEventID = m_currentEvent->id();
0032 newEvent_.emit();
0033 }
0034
0035 const edm::EventID &FWFFNavigator::getFirstEventID() { return m_firstEventID; }